Thank you for your donation!


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


Random subsample of playlist
#8
Update: I've added a script to /etc/rc.local that tests whether mpd is running and then pipes a random selection of tracks from a playlist into ashuffle. On boot, this initiates shuffling a subset of tracks from your playlist into Moode without overloading the browser memory, which seemed to be an issue with Chrome on both my tablet and phone. For my purposes , it's better than the shuffle option within Moode as it doesn't pick from the whole library, but a playlist or folder (see previous post).

(/etc/rc.local)
while !(pgrep -x "mpd" > /dev/null)
do
sleep 10
done
shuf -n 200 "/var/lib/mpd/playlists/CDs.m3u" | ashuffle -f -

This seems to work OK - so far: this isn't my specialist subject, so happy to receive comments.

Cheers,
Andy
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 Hillsidebeer - 05-03-2018, 08:13 PM

Forum Jump: