skorokithakis / catt

Cast All The Things allows you to send videos from many, many online sources to your Chromecast.
BSD 2-Clause "Simplified" License
3.35k stars 155 forks source link

playlist not working #418

Open mg-dev25 opened 1 year ago

mg-dev25 commented 1 year ago

Hello, I tried multiple command to play a playlist YouTube randomly, but nothing work.

/bin/./catt -d "192.168.10.107" cast -y "opts.playlist_random=yes" "https://www.youtube.com/watch?v=CQLsdm1ZYAw&list=PLMC9KNkIncKseYxDN2niH6glGRWKsLtde"

Play only the first video on the Google Home Mini.

[youtube:tab] Downloading playlist PLMC9KNkIncKseYxDN2niH6glGRWKsLtde - add --no-playlist to download just the video CQLsdm1ZYAw [youtube:tab] PLMC9KNkIncKseYxDN2niH6glGRWKsLtde: Downloading webpage [youtube:tab] PLMC9KNkIncKseYxDN2niH6glGRWKsLtde: Downloading webpage [youtube:tab] PLMC9KNkIncKseYxDN2niH6glGRWKsLtde: Redownloading playlist API JSON with unavailable videos [youtube:tab] PLMC9KNkIncKseYxDN2niH6glGRWKsLtde page 1: Downloading API JSON [youtube:tab] PLMC9KNkIncKseYxDN2niH6glGRWKsLtde page 2: Downloading API JSON [youtube:tab] Downloading just the video CQLsdm1ZYAw because of --no-playlist [youtube] CQLsdm1ZYAw: Downloading webpage [youtube] CQLsdm1ZYAw: Downloading android player API JSON Warning: Playlist playback not possible, playing first video. [youtube] CQLsdm1ZYAw: Downloading webpage [youtube] CQLsdm1ZYAw: Downloading android player API JSON Casting remote file https://www.youtube.com/watch?v=CQLsdm1ZYAw&list=PLMC9KNkIncKseYxDN2niH6glGRWKsLtde... Playing "Rema - Calm Down (Official Music Video)" on "Bedroom speaker"... This is the same with the catt -r option and other playlist link.

/bin/./catt -d "192.168.10.107" cast -r https://www.youtube.com/watch?v=CQLsdm1ZYAw&list=PLMC9KNkIncKseYxDN2niH6glGRWKsLtde

I test it on my Debian server and my arch Linux computer, the problem is the same.

For this one the playlist only play 1 song but the random option work, surely because the "&" and the text that come before has been removed. On yt-dlp it can be prevented by double cote the URL.

/bin/./catt -d "192.168.10.107" cast -r -t 20 https://www.youtube.com/playlist?list=PLcirGkCPmbmFeQ1sm4wFciF03D_EroIfr

Do you have any idea how can I resolve this issue? Thanks