Splamy / TS3AudioBot

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

yt-dlp with oauth2 - Error: Could not load. (youtube: youtube-dl failed to load the resource.) #1061

Open Campospl opened 1 month ago

Campospl commented 1 month ago

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

System Information:

OS: Ubuntu Noble 24.04 (aarch64) Host: Raspberry Pi 5 Model B Rev 1.0 Kernel: Linux 6.8.0-1010-raspi TS3AudioBot Version: 0.13.0-alpha.41 develop_linux_arm64/develop_linux_x64 Branch: develop CommitHash: b9ccee22f5eccce01bccaad573230606807bc5e1

yt-dlp used with OAuth2 plugin and specified in ts3audiobot.toml

Issue occurs across different versions: Tested on VM with Debian 12 and TS3AudioBot 0.14.0-alpha.55, but the same error persists.

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

The bot starts up normally without any other issues, and logs don't show any specific errors related to yt-dlp. yt-dlp works normally from the command line on rpi or VM.

20:53:36.5415| INFO|Core| [============ TS3AudioBot started =============]
20:53:36.6215| INFO|Core| [ Date: Friday, 27 September 2024 20:53:36
20:53:36.8249| INFO|Core| [ Version: 0.13.0-alpha.41/develop/b9ccee22
20:53:36.8254| INFO|Core| [ Build: Release
20:53:36.8254| INFO|Core| [ Platform: Ubuntu 24.04.1 LTS (Noble Numbat) (64bit)
20:53:36.8254| INFO|Core| [ Runtime: .NET (6.0.4) ServerGC:True GC:SustainedLowLatency
20:53:36.8288| INFO|Core| [ Opus: libopus 1.4 (x64)
20:53:36.8288| INFO|Core| [==============================================]
20:53:37.5958| INFO|Core| Starting Webserver on port 58913
20:53:37.7718| INFO|Core| WebServer has closed
20:53:37.7790|ERROR|Core| The webserver could not be started
20:53:37.9325| INFO|Core| Bot "default" connecting to ""nspeak.pl""
20:53:39.1301| INFO|Core| Client connected.
20:54:35.1333| INFO|0| User Campos requested: !play https://music.youtube.com/watch?v=Qr-Nfj6b0G0&list=LM

[27.09.2024 20:54] Campos: !play https://music.youtube.com/watch?v=Qr-Nfj6b0G0&list=LM
[20:54] TS3AudioBot: Error: Could not load. (youtube: youtube-dl failed to load the resource.)
yt-dlp 
[debug] Command-line config: []
[debug] System config "/etc/yt-dlp.conf": ['-v', '--username', 'PRIVATE', '--password', 'PRIVATE']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.08.06 from yt-dlp/yt-dlp [4d9231208] (zip)
[debug] Python 3.12.3 (CPython aarch64 64bit) - Linux-6.8.0-1010-raspi-aarch64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: brotli-1.1.0, certifi-2023.11.17, requests-2.31.0, sqlite3-3.45.1, urllib3-2.0.7
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Extractor Plugins: oauth2 (YoutubeClipIE), oauth2 (YoutubeConsentRedirectIE), oauth2 (YoutubeFavouritesIE), oauth2 (YoutubeIE), oauth2 (YoutubeMusicSearchURLIE), oauth2 (YoutubeNotificationsIE), oauth2 (YoutubeSearchDateIE), oauth2 (YoutubeSearchIE), oauth2 (YoutubeSearchURLIE), oauth2 (YoutubeTabIE)
[debug] Plugin directories: ['/home/ubuntu/.local/lib/python3.12/site-packages/yt_dlp_plugins']
[debug] Loaded 1830 extractors