Splamy / TS3AudioBot

Advanced Musicbot for Teamspeak 3
https://splamy.de/TSAudioBot/Home
Open Software License 3.0
700 stars 139 forks source link

Youtube-DL is fried, so the TS3AudioBot isn't working. #1022

Open itseyup opened 1 year ago

itseyup commented 1 year ago

Describe the bug Since the yesterday bot wasn't opening the musics. I checked and there was a problem with the youtube-dl. There was a patch released by yt-dlp but I couldn't get it done with TS3AudioBot. I renamed the yt-dlp to youtube-dl, specified the youtube-dl path on ts3audiobot.toml but still it isn't working.

To Reproduce Just search a youtube music from youtube

Version Latest version.

Platform Ubuntu 20.04 LTS Focal Lossa I'am running ELF

Log There isn't log on the screen session.

EMPEMPRESS0UserAtlantiss commented 1 year ago

Try just adding this file inside of /usr/local/bin/ rename it from yt-dlp into youtube-dl After that changes permissions of the file to 777 and give it a try, I have tested this method and it works. For further questions I'm here. "File"

b0siak commented 1 year ago

The link you provided isn't working.

itseyup commented 1 year ago

Try just adding this file inside of /usr/local/bin/ rename it from yt-dlp into youtube-dl After that changes permissions of the file to 777 and give it a try, I have tested this method and it works. For further questions I'm here. "File"

I have already told you that I have tried that method. It didn't work out for me.

xaynn commented 1 year ago

even if you put yt-dlp with permissions it wont work, we need to wait for update

Loupeznik commented 1 year ago

Using yt-dlp instead of youtube-dl fixed the problem for me on Ubuntu 22.04, even without changing any permissions or name of the binary. Does the bot produce the same error as with youtube-dl when you switch to yt-dlp?

EMPEMPRESS0UserAtlantiss commented 1 year ago

https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334 This version works, I have tested it. Currently this one works just repeat this steps.

Try just adding this file inside of /usr/local/bin/ rename it from yt-dlp into youtube-dl After that changes permissions of the file to 777 and give it a try, I have tested this method and it works. For further questions I'm here. "File"

xaynn commented 1 year ago

sure, i downloaded incorrect version now its working

opZ1ca commented 1 year ago

https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334 This link is not working, can you send a new one?

b0siak commented 1 year ago

You just have to copy the link manually and paste it in browser URL field.

Vangelis66 commented 1 year ago

This link is not working, can you send a new one?

Sadly, the text of the link isn't the same as the link target (which is a broken mess: https://github.com/Splamy/TS3AudioBot/issues/url) ...

Below link will yield the most-up-to-date release of youtube-dl "daily" builds at the time the link is clicked: https://github.com/ytdl-patched/youtube-dl/releases/latest (2023.02.22.114514 as I type this 😜 ).

Windows200000 commented 3 months ago

The fix I use: #1059

Error description

Somewhere in the last couple days it stopped working. https://github.com/yt-dlp/yt-dlp/releases/tag/2024.08.06 didn't help.

Error: Could not load. (youtube-dl failed to load the resource.)

My setup

ts3audiobot.toml

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

yt dlp is set as executable.

yt-dlp error

$ ./yt-dlp_linux https://www.youtube.com/watch?v=dQw4w9WgXcQ
[youtube] Extracting URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ
[youtube] dQw4w9WgXcQ: Downloading webpage
[youtube] dQw4w9WgXcQ: Downloading ios player API JSON
[youtube] dQw4w9WgXcQ: Downloading web creator player API JSON
ERROR: [youtube] dQw4w9WgXcQ: Sign in to confirm you’re not a bot. This helps protect our community. Learn more

Update

It works with cookies, I'll try to see if there's an easy way to make it use cookies

Splamy commented 3 months ago

We're using this auth plugin for yt-dlp https://github.com/coletdjnz/yt-dlp-youtube-oauth2 to login with a google account. Works so far on our server.