• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

youtube-dl not playing all links

Bituspy

Member
Youtube-dl not downloading all files.


Hi,

I am using sinusbot with the latest version uploaded by flyth. Its been a couple of months since the music bot stopped working and as i was busy doing some work I didn't really look into it.

Providing all the info from the diag script below first:

Code:
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 20.10
- Kernel: Linux 5.8.0-41-generic x86_64
- Load Average: 0.05 0.26 0.32
- Uptime: 76 days, 16 hours, 55 minutes, 47 seconds
- OS x64 check: OK
- OS Updates: 0 (well done!)
- OS Missing Packages: None
- OS APT Last Update: 20.04.2021 09:58:57 UTC +00:00:00
- Shell Locale: en_US.UTF-8
- Bot Start Script: not found
- CPU:
    Architecture:                    x86_64
    CPU(s):                          1
    Thread(s) per core:              1
    Core(s) per socket:              1
    Socket(s):                       1
    Model name:                      AMD EPYC 7601 32-Core Processor
    CPU MHz:                         2199.964
    Hypervisor vendor:               KVM
    Virtualization type:             full
- RAM: 405.64 MB/977.45 MB in use (41%)
- SWAP: 107.31 MB/511.99 MB in use (20%)
- DISK: 7.89 GB/24.06 GB in use (32%)
- Package versions:
   - libglib: 2.66.1-2ubuntu0.2

BOT INFORMATION
- Status: running (PIDs: 1717140 1717139, User: musicbot)
- Webinterface: port locally reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot
- Binary Info: MD5 Hash: 9e3b0b3203e71dd8b177bd39effa7bea, Perms: 755, User: musicbot
- Version:
- TS3 Plugin: installed (md5 hash match)
   - Bot Plugin: d34be55adbe414e302111d4b779ddbe6
   - TS3 Client: d34be55adbe414e302111d4b779ddbe6
- Config:
   - LogLevel = 3
   - TS3Path = /opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.5.6)
   - YoutubeDLPath = /opt/sinusbot/youtube-dl (does exist, version: 2021.04.17)
- Installed scripts: advertising.js; alonemode.js; bookmark.js; command.js; followme.js; norecording.js; rememberChannel.js; sinusbot-commands.js; welcome.js; Youtube_Search.js

BOT TECHNICAL INFORMATION
- File exists:
   - TS3Client/libqxcb-glx-integration.so: no
- LDD output:
    linux-vdso.so.1 (0x00007fffa91fd000)
    libswresample.so.2 => /opt/sinusbot/libswresample.so.2 (0x00007fd412681000)
    libavfilter.so.6 => /opt/sinusbot/libavfilter.so.6 (0x00007fd412329000)
    libavformat.so.57 => /opt/sinusbot/libavformat.so.57 (0x00007fd411f28000)
    libavcodec.so.57 => /opt/sinusbot/libavcodec.so.57 (0x00007fd4115c3000)
    libavutil.so.55 => /opt/sinusbot/libavutil.so.55 (0x00007fd41134f000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd41133d000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd4111ec000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd4111ca000)
    libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd410fe9000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd410fce000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd410de4000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fd410dc7000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fd410dba000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fd41289d000)

REACHABILITY CHECKS
- HTTPS check with IPv4 mode: SUCCESS [Connection established to www.sinusbot.com, CODE #200]
- HTTPS check with IPv6 mode: IGNORED [Disabled]
- DNS resolution check: SUCCESS [www.sinusbot.com resolved to 104.21.13.58]
- Update server checks:
    update01.sinusbot.com -> 104.21.13.58: SUCCESS [CODE #404]
    update02.sinusbot.com -> 104.21.13.58: SUCCESS [CODE #404]
    update03.sinusbot.com -> 104.21.13.58: SUCCESS [CODE #404]

TIME INFORMATION
- Time (local): 20.04.2021 11:09:02 UTC +00:00:00
- Time (remote): 20.04.2021 11:09:02 UTC +00:00:00
- Time (difference): 0 secs (Time diff less than 2 secs. Good.)
- Timezone: Etc/UTC

OTHER INFORMATION
- TeamSpeak3 Version: 3.5.6
- youtube-dl Version: 2021.04.17
- DiagScript Version: 0.8.0
==========================================================


Now the bot started working only on a select few songs while it doesn't work for the others. I have already deleted the entire music bot, youtube-dl and started a new one because the old one was doing the same thing so I decided to install a fresh one.

Unsuccessful Download:
Code:
2021/04/20 11:14:13 7a5153f8 8fa994bc PLUGIN [         command:41:14] Bituspy TS5 (H0v/iEiLM/3WeMjiCzHu5gYHLTo=) used !yt
2021/04/20 11:14:16 7a5153f8          INFO   Downloading (single) 4.4M with codec opus from youtube
2021/04/20 11:14:17 7a5153f8 8fa994bc PLUGIN [sinusbot-commands:174:16] Error while downloading YouTube Video: http://www.youtube.com/watch?v=kJQP7kiw5Fk; could not play file
2021/04/20 11:14:37 7a5153f8 8fa994bc PLUGIN [         command:41:14] Bituspy TS5 (H0v/iEiLM/3WeMjiCzHu5gYHLTo=) used !yt
2021/04/20 11:14:40 7a5153f8          INFO   Downloading (single) 4.4M with codec opus from youtube
2021/04/20 11:14:40 7a5153f8 8fa994bc PLUGIN [sinusbot-commands:174:16] Error while downloading YouTube Video: https://youtu.be/kJQP7kiw5Fk; could not play file
2021/04/20 11:15:09 7a5153f8 8fa994bc PLUGIN [         command:41:14] Bituspy TS5 (H0v/iEiLM/3WeMjiCzHu5gYHLTo=) used !yt


Successful download:
Code:
2021/04/20 11:15:12 7a5153f8          INFO   Downloading (multi) 4M with codec opus from youtube
2021/04/20 11:15:12 7a5153f8 8fa994bc PLUGIN [sinusbot-commands:165:16] Downloaded YouTube Video: https://youtu.be/JGwWNGJdvx8
2021/04/20 11:17:08 7a5153f8 8fa994bc PLUGIN [         command:41:14] Bituspy TS5 (H0v/iEiLM/3WeMjiCzHu5gYHLTo=) used !yt
2021/04/20 11:17:11 7a5153f8          INFO   Downloading (multi) 3.4M with codec opus from youtube
2021/04/20 11:17:12 7a5153f8 8fa994bc PLUGIN [sinusbot-commands:165:16] Downloaded YouTube Video: https://youtu.be/60ItHLz5WEA

When I use webinterface to download a song it says "Could not play file".

Edit: All videos from Avicii does not work. Similarly Shawn Mendes, Taylor Swift and many others do not work. It looks like its unable to download entire sets of videos.

Already searched for similar problems but no reference of youtube playing only a few specific links but not all of them.

Anyone who can suggest a possible solution? The same goes with the Youtube Search script. (So I strongly believe its something related to youtube-dl but I am unable to find the solution anywhere)

Any help or support will be appreciated as I have tried almost everything.
 
Last edited:
Top