TS3AudioBot icon indicating copy to clipboard operation
TS3AudioBot copied to clipboard

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

Open Windows200000 opened this issue 1 year ago • 4 comments

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

Windows200000 avatar Aug 08 '24 22:08 Windows200000

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

Deci8BelioS avatar Aug 24 '24 11:08 Deci8BelioS

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

mekket avatar Aug 25 '24 21:08 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.

Did you edit ts3audiobot.toml and restart the bot?

Windows200000 avatar Aug 27 '24 18:08 Windows200000

thanks a lot!

suoxi avatar Dec 12 '24 15:12 suoxi