Hello all,
we are setting up an online another online radio…
Libretime is install via Docker Compose, all details of the install are here : Making sure you're not a bot!
I’m giving my best try to make custom auto-dj fallback, editing ls_script.liq which kind work as expected…
But sometimes, I see liquidsoap playing infinitely the emergency track… an never getting back to the playlist… Even if the reload time is setup to 12h…
I’ve a bash script that populate with new audio files the “day” folder at night, and the “night” folder during the day… But it seems when 2 tracks can’t be loaded in a row by liquidsoap, it fallback on the emergency, and never get out of it….
Is there some sort of playlist.reload possible when it’s on fail? I could find a solution in the doc or the book…
Relevant part of the script is here :
#default = amplify(id="silence_src", 0.00001, noise())
# Safety offair song
emergency = playlist("/app/myradio/offair")
# Day music
day = playlist(reload=43200, reload_mode="seconds", "/app/myradio/music/day")
#Night music
night = playlist(reload=43200, reload_mode="seconds", "/app/myradio/music/night")
# Enable metadata
day = map_metadata(update_metadata, day)
night = map_metadata(update_metadata, night)
rotation = switch([({8h-20h}, day), ({20h-8h}, night)])
# AutoDJ Harbor live source
djharbor = input.harbor("remotedj", port=8003, password="xxxxx")
dj = fallback(track_sensitive = false, [djharbor, rotation])
default = fallback(track_sensitive = false,[dj, emergency])
# Original metadata update
def map_message_offline(m) =
[("title", m["title"] )]
end
default = map_metadata(id="map_metadata:offline", map_message_offline, default)
thanks !
pierre