Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Random subsample of playlist
#10
(05-26-2018, 09:09 AM)Hillsidebeer Wrote: Hi,

I quickly realized that my "solution" to the problem of unresponsive large playlists didn't work well: creating a subset of (say) 200 tracks at boot and then using ashuffle to feed tracks to Moode meant that, inevitably, some tracks were played more than once over the course of a day (ashuffle doesn't have a Consume mode).

Instead, I now get the pi to create a new playlist containing 200 randomly selected tracks from a larger playlist. I added this to /etc/rc.local so that it runs on boot and refreshes the playlist daily (my Moode pi is set to shutdown at night):

           sudo sh -c 'shuf -n 200 "/var/lib/mpd/playlists/The CDs.m3u" > "var/lib/mpd/playlists/Random.m3u"'

This "Random" playlist appears in Moode's Browse tab and will also start automatically on boot if set up that way.

Cheers,
Andy

Clever solution, Andy, that is very much in the spirit of Major Charles Emerson Winchester III (a character in the long-running TV show M*A*S*H): "I do one thing at a time. I do it very well. And then I move on."  Smile

Regards,
Kent
Reply


Messages In This Thread
Random subsample of playlist - by Hillsidebeer - 04-29-2018, 04:06 PM
RE: Random subsample of playlist - by Tim Curtis - 04-29-2018, 05:49 PM
RE: Random subsample of playlist - by Tim Curtis - 04-29-2018, 10:07 PM
RE: Random subsample of playlist - by TheOldPresbyope - 05-26-2018, 12:01 PM

Forum Jump: