Hi Peter, Thanks for your repy.
With regard to option (b), correct me if I am wrong: This mean that if I have 4 directories, when the weighting variable causes Liquidsoap to return to the music1 directory, it will continue playing the randomised order from where it left off (essentially remembering the position in the playlist so as to avoid repeating tracks that may have already been played from that directory) that is until I add or remove content from that directory at which point the playlist will reload and start afresh. Damian - - - I prefer to use encrypted email. My public key fingerprint is 77CC 9087 0A92 F55D 75A3 660B 68F2 1FA9 B26E CAC7 > On 11 Apr 2018, at 6:37 pm, Peter <[email protected]> wrote: > > > Hi - you can do this quite easily with Liquidsoap. > > (a) if you want to generate playlists from specific directories, you can do > so with a command similar to: > > ls -d "$PWD"/* > /path_to/directory_containing_playlists/playlist.m3u (or > whatever file extension you choose) > > and make this run periodically. However... > > > (b) You can dispense with playlists because Liquidsoap can simply take the > contents of a directory as a playlist. EG this is a line from one of my > config files: > > jingles = playlist(reload_mode = "watch", "/radio/jingles/") > > You probably don't need to specify what sort of random behavior, because it > defaults to mode="randomize", which shuffles the play order each time it is > loaded, and plays it in this order for a whole round. > > The "watch" command tells it to keep an eye on the directory and reload the > playlist when the contents changes, i.e. when you add news files. > > Finally, you can set the weighting between each playlist: > > radio = random(weights = [1, 1, 1],[music1, music2, music3]) > > - pete > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users
signature.asc
Description: Message signed with OpenPGP
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
