Reuse source after exit 0
in rotate.merge
#2860
Replies: 4 comments
-
Thanks for reporting. The problem is that Once the build here: https://github.com/savonet/liquidsoap/actions/runs/4065980109 finishes, the release should be available for testing here: https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.1.x. |
Beta Was this translation helpful? Give feedback.
-
Great! Thank you! It now switches between sources, so I can even apply crossfade. |
Beta Was this translation helpful? Give feedback.
-
Yeah you need a string getter for this so that the process string is reload each time it restarts. I think this should be fixed in the latest rolling release and
|
Beta Was this translation helpful? Give feedback.
-
Thank you for quick response and for helping! I have update the package and change code to the one you have provided and now two different tracks play, then stream goes Meanwhile I was requested to change the input from raw audio source to http source (flac/mp3) so LS will receive metadata automatically. |
Beta Was this translation helpful? Give feedback.
-
Hello.
Please help to find out how to reuse source in
rotate.merge
after it's exit. As it states in docs, rotate.merge should loops a sequence of sources. But after sourceexit 0
on the end of track, stream goessafe_blank
instead of looping sources.Some info:
LS code:
With current code, LS plays two random tracks and goes
safe_blank
after each of sources exit. If i try to setrotate.merge([input.airsonic.random(restart=true),input.airsonic.random(restart=true)])
only first source plays and it constantly repeats 1 track, so it does not perform
list.pick()
every time as expected.Is there a way to reuse source without restart argument? Or to re-read variable on source repeat? Or maybe there is another approach?
Beta Was this translation helpful? Give feedback.
All reactions