Re: [Savonet-users] [savonet/liquidsoap] Playlists with multiple root directories (#718)

2019-02-21 Thread Romain Beauxis
Hey! You can filter whatever file is being picked by the playlist using the check next argument. Something along these lines: ``` def check_next(r) = dirname(request.filename(r)) != "/root/dir3" end s = playlist(check_next=check_next,...) ``` I'm closing the ticket but feel free to follow up

Re: [Savonet-users] [savonet/liquidsoap] Playlists with multiple root directories (#718)

2019-02-21 Thread Romain Beauxis
Closed #718. -- 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#event-2155476295___ Savonet-users mailing list

Re: [Savonet-users] [savonet/liquidsoap] Playlists with multiple root directories (#718)

2019-02-21 Thread Ryan Foster
Hello! I do know that playlist() will traverse subdirectories, so the top option could work, except that I want to exclude /root/dir3. Simply creating a playlist on /root would include all three directories, instead of just the first two that I want. For the second option, that would also

Re: [Savonet-users] [savonet/liquidsoap] Playlists with multiple root directories (#718)

2019-02-21 Thread Euguar
Hi! You may to use this config: `radio = playlist(reload = 1, reload_mode = "rounds", "/root")`. Liquidsoap will be upload files from subdirectories. Or you may to create playlist file (ex. `m3u` or `pls`): ``` #EXTM3U #EXTINF:0,Artist - Title /root/dir1/song1.mp3 #EXTINF:0,Artist - Title

[Savonet-users] [savonet/liquidsoap] Playlists with multiple root directories (#718)

2019-02-20 Thread Ryan Foster
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