irbyk / Plex-Discord-Bot_V2

Upgrade of the Plex-Discord-Bot by danxfisher : https://github.com/danxfisher/Plex-Discord-Bot
BSD 3-Clause "New" or "Revised" License
57 stars 12 forks source link

BUG Youtube songs stop after 80 seconds #44

Open Famf opened 1 year ago

Famf commented 1 year ago

Describe the bug When playing a song with the !youtube command, the song stops after around 80 seconds. When checking logs using 'docker logs -f plexbot' I saw 'WARNING: ytdl-core is out of date! Update with "npm install ytdl-core@latest".' I ran that command in the docker container and I no longer get that warning but the issue persists. I'm not sure if it would be possible to use yt-dlp instead of yt-dl as I have better luck with that for other uses.

To Reproduce Steps to reproduce the behavior:

  1. Play something using the !youtube command (The example I used is !youtube https://www.youtube.com/watch?v=zWNkD4YWt_c)

Expected behavior The bot should play the full song before disconnecting.

Versions (please complete the following information):