You could also try to add track_sensitive=false in the switch() function:
"track_sensitive (anything that is either bool or ()->bool – defaults to
true): Re-select only on end of tracks."
http://liquidsoap.fm/doc-1.3.3/reference.html#switch
myplaylist = switch(track_sensitive=false,[
({13h00-14h00},remote_stream), ({true}, myplaylist) ] )
Am 23.11.2017 um 18:55 schrieb Stephan Hoppe:
Wow, that great! Thanks!
Can you show me how I would integrate playlist_once() into the .liq bit
I've already provided?
thx
s
On Thu, Nov 23, 2017 at 6:49 PM, neralex <[email protected]
<mailto:[email protected]>> wrote:
Hi!
playlist.once() does this job. It cuts the playlist after the end-time.
http://liquidsoap.fm/doc-1.3.3/reference.html#playlist_once
<http://liquidsoap.fm/doc-1.3.3/reference.html#playlist_once>
Cheers
Am 23.11.2017 um 13:45 schrieb Stephan Hoppe:
Hi:
I want to cut into my regularly playing playlist each day at a
certain time and play a remote stream (that is never blank -
it's always playing something) for just one hour ... after which
I want to fallback to my regular playlist again.
myplaylist = playlist("/home/user/playlist.m3u")
remote_stream = input.http("http://remote_stream
<http://remote_stream>")
output.dummy(fallible=true, remote_stream)
myplaylist = switch([ ({13h00-14h00},remote_stream), ({true},
myplaylist) ] )
Using the bit of .liq above, remote_stream comes on at/after 13h
as it should, but then it plays forever. How to get it to stop
and fall back to myplaylist at 14h, please?
Thanks,
S
------------------------------------------------------------------------------
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]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/savonet-users
<https://lists.sourceforge.net/lists/listinfo/savonet-users>
------------------------------------------------------------------------------
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]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/savonet-users
<https://lists.sourceforge.net/lists/listinfo/savonet-users>
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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