Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Windows200000 opened this issue Aug 8, 2024 · 3 comments
Open

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

Windows200000 opened this issue Aug 8, 2024 · 3 comments

Comments

@Windows200000
Copy link

Windows200000 commented Aug 8, 2024

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

@Deci8BelioS
Copy link

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

@mekket
Copy link

mekket commented Aug 25, 2024

"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.

@Windows200000
Copy link
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants