PromyLOPh / pianobar

Console-based pandora.com player
http://6xq.net/pianobar/
Other
1.73k stars 323 forks source link

Preload next playlist #722

Open haarp opened 2 years ago

haarp commented 2 years ago

Subject of the issue

Music playback is interrupted at the end of a playlist while the next playlist loads. When using public proxies as control_proxy, one can often expect these delays to become very long, sometimes a minute or more (!) - involving frequent timeouts and retries too.

It would be great if pianobar could asynchronously preload the next playlist before it's needed, e.g. when the last song in the current playlist starts playing.

Thanks! :)

Your environment

pianobar 2020.04.05 on Gentoo Linux

PromyLOPh commented 2 years ago

pianobar does not have any asynchronous operations and loading a new playlist ahead of time would block the interface while doing so. Changing that would require quite a bit of work, but if anyone wants to go for it, go ahead.

Perhaps pianod2 can do that already…?