Hi Romain.
Thanks for the note.
Apparently I’m on Liquidsoap 1.1.1 so that could be the issue.
Let me see if I can get someone to help me upgrade ~
I’m not an expert on that front.
A related question:
My current script pulls the playlist()
directly from a folder instead of a playlist file ~
which is actually preferred right now for this application.
At first, when I removed/renamed the .wav files inside
that folder while the playlist was active,
it was causing big problems… errors and warnings and
it seemed Liquidsoap even stopped running.
But then I added the reload_mode=“watch” and it actually seems
to be handling it pretty well now.
By “it” I mean dynamically messing with the audio files
in the folder while the playlist is active.
I still see warnings in the log, but Liquidsoap seems to
catch up with the changes without breaking.
Is this a proper use?
Here’s a simple version of the script:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set("log.file.path","/home/liquidsoapuser/music/radio.log")
# Music playlists
s0n1ks = playlist(mode='randomize', reload_mode="watch",
"/home/liquidsoapuser/music/s0n1ks")
s0n1ks = normalize(s0n1ks)
# If something goes wrong, we'll play this
security = single("~/music/s0n1ks.fallbaak/fallbaak.wav")
radio = fallback(track_sensitive = true, [s0n1ks, security])
# Stream it out
output.icecast(%mp3,
host = "localhost",
port = 2255,
password = "~ ~ ~ ~ ~",
mount = "radio",
name = "radio",
radio)
> On Mar 28, 2020, at 10:53 AM, Romain Beauxis <[email protected]> wrote:
>
> Hi Scott!
>
> What version of liquidsoap are you using?
>
> Would you mind filling up a bug report on our github repository at:
> https://github.com/savonet/liquidsoap <https://github.com/savonet/liquidsoap>
> with this information and also perhaps an minimal script so we can see if we
> can reproduce and fix the issue?
>
> Thanks!
> Romain
>
> Le ven. 20 mars 2020 à 12:36, Scott Zach <[email protected]
> <mailto:[email protected]>> a écrit :
> Hello.
>
> I have a simple script that plays a playlist with reload_mode = “watch”:
>
> s0n1ks = playlist(mode='randomize',
> "/home/liquidsoapuser/music/playlist.pls", reload_mode="watch", reload=1)
>
> the script runs fine.
> and if I update the .pls file once, I can see from the logs that it picks up
> the change immediately.
> but if I update a second or third time, Liquidsoap doesnt seem to notice that
> I updated .pls.
>
> is there a trick I’m missing?
>
> thanks.
> ~scott
>
>
>
>
>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/savonet-users
> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users