I have a couple of directories filled with music:
/root
/dir1 (100 songs)
/dir2 (500 songs)
/dir3 ( 12 songs)
`playlist()` has support for reading a directory:
radio = playlist(reload = 1, reload_mode = "rounds", "/root/dir1")
Is it possible to make a playlist that can support multiple directories? In
this case, I would like to have one playlist that pulls songs from both
`/root/dir1` and `/root/dir2`, but not `/root/dir3`. It would have to get all
the songs across both folders, and then randomly pick songs from that whole
group.
I've tried using `random([playlist_dir1, playlist_dir2])` but it seems that if
one playlist is much smaller than the other, you'll hear repeats from the
smaller playlist more often. I assume this is because random picks one of the
ready sources and plays it, not taking into account how many songs are in each
playlist. Perhaps setting weights equal to how many songs are in the playlists
would make it more uniform, but I would need this to be dynamic as well.
`rotate([playlist_dir1, playlist_dir2])` seems to be the same as above, but
worse in my case. You'll hear the contents of playlist_dir1 multiple times
before playlist_dir2 restarts.
Another thing I tried is having a text file with the above two paths in it, one
per line, hoping liquidsoap would see that they were paths instead of songs in
a playlist. This didn't work.
Any ideas on making this work? I suppose if it isn't possible at this time,
I'll have to reorganize my music into a single folder, or perhaps use docker
volumes to mount my music in multiple locations.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/718
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users