#default = amplify(id="silence_src", 0.00001, noise())
ref_off_air_meta = ref off_air_meta
if !ref_off_air_meta == "" then
ref_off_air_meta := "Airtime - offline"
end
#default = rewrite_metadata([("title", !ref_off_air_meta)], default)
music = playlist (mode='randomize',reload=1200,reload_mode="rounds", "/srv/airtime/stor/imported/")
sweepers = playlist(mode='randomize',reload=1200,reload_mode="rounds", "/srv/airtime/stor/sweepers/")
mixed = rotate(weights=[1,8],[sweepers,music])
default = fallback(track_sensitive=false, [mixed])
#default = playlist(mode='random', "/srv/airtime/stor/imported")
default = rewrite_metadata([(!ref_off_air_meta,"artist" ),("-","title" )], default)
ignore(output.dummy(default, fallible=true))
master_dj_enabled = ref false
live_dj_enabled = ref false
scheduled_play_enabled = ref false
ignore(output.dummy(dj_live, fallible=true)
s = if dj_live_stream_port != 0 and dj_live_stream_mp != "" then
dj_live =
audio_to_stereo(
input.harbor(id="live_dj_harbor",
dj_live_stream_mp,
port=dj_live_stream_port,
auth=check_dj_client,
max=40.,
on_connect=live_dj_connect,
on_disconnect=live_dj_disconnect))
ignore(output.dummy(dj_live, fallible=true))
switch(id="show_schedule_noise_switch",
track_sensitive=false,
transitions=[transition, transition],
[({!live_dj_enabled}, dj_live), ({true}, s)]
)
else
s
end
so whenever the signal drops from the rermote it wat that lenght before going back
or plainly when you have a schedule delete all path to other files in the m3u list and leave that one blank file.
This last point is to show you a common sense approach,you cannot have autodj on while there is something shedule.
It looks like you're new here. If you want to get involved, click one of these buttons!