Skip to content

FIX for: youtube: youtube-dl failed to load the resource. #1059

Open

Description

@Windows200000

Make a new file and edit it: (I named it cytdlp for ytdlp with cookies)

#!/bin/bash
./yt-dlp_linux --cookies cookies.txt "$@"

Make it executable chmod +x cytdlp

Edit ts3audiobot.toml to include:

[tools]
#Path to the youtube-dl binary or local git repository.
youtube-dl = { path = "./cytdlp" }

Get the cookies and move them to the bots directory (probably from your PC at home) by running:
yt-dlp --cookies-from-browser firefox --cookies cookies.txt
link to ytdlp article for more details

restart the bot

If it doesn't work:

Make sure you have the latest ytdlp
Confirm ./cytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ works, so you know you set everything up correctly

Activity

  1. Deci8BelioS commented on Aug 24, 2024

    @Deci8BelioS

    Thank you very much, it took me a while but I managed to make it work, again, thank you very much.

  2. mekket commented on Aug 25, 2024

    @mekket

    "Confirm ./cytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ works" - This works but the bot still gives the same error: Error: youtube-dl failed to load the resource.

  3. Windows200000 commented on Aug 27, 2024

    @Windows200000
    Author

    "Confirm ./cytdlp https://www.youtube.com/watch?v=dQw4w9WgXcQ works" - This works but the bot still gives the same error: Error: youtube-dl failed to load the resource.

    Did you edit ts3audiobot.toml and restart the bot?

  4. suoxi commented on Dec 12, 2024

    @suoxi

    thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions