Closed adworks closed 3 months ago
Hi @adworks, I can't reproduce this behavior. In my case, playlist works as expected.
radio = playlist("/tmp/test/music.m3u", mode="normal", reload_mode="watch")
radio = fallback([radio, blank(duration=5.0)])
radio.on_metadata(print)
output.dummy(radio, fallible=true)
services:
liquidsoap:
image: savonet/liquidsoap:v2.2.5
command: /tmp/test/main.liq
volumes:
- ./:/tmp/test
By the way, why do you use blank(duration=5.0)
instead of mksafe
or fallback(track_sensitive=false)
?
Hey @vitoyucepi ,
Thank you so much for the quick reply.
It isn't a bug, it was our fault / a bug in our system: we were rewriting music.m3u
periodically, regardless of whether its contents changed or not. Having reload_mode="watch"
, the playlist would be reloaded and having mode="normal"
it would start from the top (and not from the second track - after printing the metadata and properly checking the log). So, my apologies for jumping to reporting this without investigating more thoroughly.
We use blank(duration=5.0)
because we sometimes rewrite the music.m3u
playlist. We thought that silence would be ok as a fallback when no music is available (while a new m3u file is generated, though this is mostly instant). We're just starting with liquidsoap, so: are we wrong to do this?
Thanks again!
and not from the second track
You may suddenly discover the same behavior as in #3343.
We thought that silence would be ok as a fallback when no music is available
radio = playlist("/tmp/test/music.m3u", mode="normal", reload_mode="watch")
radio = mksafe(radio)
radio = playlist("/tmp/test/music.m3u", mode="normal", reload_mode="watch")
radio = fallback([radio, blank()], track_sensitive=false)
If you need help with your script, feel free to start a new discussion.
Describe the bug I have a playlist containing external music files, with reload_mode="watch" and mode="normal". When starting the script, the first song is played, then the second song is played over and over again without moving to the third song. This DOES NOT happen if the playlist contains local files.
To Reproduce
"/etc/liquidsoap/stream-3/music.m3u"
contains external files and it looks like this:At this point, the script will play song1.mp3, song2.mp3, song2.mp3, song2.mp3 and continue looping song2.mp3 forever.
If the
"/etc/liquidsoap/stream-3/music.m3u"
contains:then everything works as expected: the songs are played in the correct order 1-2-3-1-2-3-1-etc.
Expected behavior The playlist should be played in the correct order even if it contains external files.
Version details
Install method Using the savonet/liquidsoap:v2.2.5 docker image.