Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback/AutoDJ Assitstance. #31

Open
ProgzillaRadio opened this issue Sep 7, 2020 · 0 comments
Open

Fallback/AutoDJ Assitstance. #31

ProgzillaRadio opened this issue Sep 7, 2020 · 0 comments

Comments

@ProgzillaRadio
Copy link

ProgzillaRadio commented Sep 7, 2020

Hi there. Just pulled and configured the latest version of this Docker image, on Ubuntu 18.04. The service is running great, but if there's nothing scheduled, I get dead air.

I've looked at EZstream and have the required mapping in place, but it doesn't provide any fallback.

I also tried transplanting the script change I made to our existing Airtime server, which has been feeding our AutoDJ for five years (someone in a different forum advised that this change would be compatible with Libretime), but this also hasn't worked.

Can someone please advise me what I need to do to get a fallback/AutoDJ working, please?

Here are the changes I added to the 'ls_script.liq' file:

`default = amplify(id="silence_src", 0.00001, noise())

jingles = playlist(mode="random",reload_mode="watch","/external-media/jingles")
music = playlist(mode="random",reload_mode="watch","/external-media/imported/1")

j=jingles
m=music

v = random(weights = [1,5],[j,m])

#default = fallback(track_sensitive = false,[v])
default = fallback(track_sensitive=false,[strip_blank(max_blank=45.,threshold=-45.,default),v])

ref_off_air_meta = ref off_air_meta
if !ref_off_air_meta == "" then
ref_off_air_meta := "LibreTime - offline"
end

#default = rewrite_metadata([("title", !ref_off_air_meta)], default)
default = rewrite_metadata([(!ref_off_air_meta,"Progzilla" ),("#{m['artist']","artist" ),("#{m['title']","title" ),("#{m['album']","album" )], default)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant