Reload playlist failling

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

hey!

it sounds like a liquidsoap issue and since the libretime’s liquidsoap version is very old, there might not be a way to fix it.

Since this is a new deployment I think you can give the debian 12 upgraded version a try. It hasn’t made it to the official LT github repo but al the patches are available here

cheers,

Thanks @k054 !

I’m a total newbie so I’ve no idea how I could edit my docker setup to use this version you are mentioning… Is that easily doable?
or should I wait for the merges to happen?

The patches were tested on a non-docer installation, and I think making it work on the docker container would need some additional work, so I’s say give it a try but don’t get frustrated if it doesn’t work on the first attempt.

let us know how it goes :slight_smile: