CC-5226:
Metadata isn't correct during playing -should be fixed
This commit is contained in:
parent
21c84dcaad
commit
0e560d89ad
2 changed files with 14 additions and 2 deletions
python_apps/pypo/liquidsoap_scripts
|
@ -24,6 +24,8 @@ default_dj_fade = ref 0.
|
|||
station_name = ref ''
|
||||
show_name = ref ''
|
||||
|
||||
queue_metadata = ref []
|
||||
|
||||
s1_connected = ref ''
|
||||
s2_connected = ref ''
|
||||
s3_connected = ref ''
|
||||
|
@ -47,7 +49,7 @@ def create_source()
|
|||
# the crossfade function controls fade in/out
|
||||
l = crossfade_airtime(l)
|
||||
|
||||
l = on_metadata(notify, l)
|
||||
l = on_metadata(notify_queue, l)
|
||||
sources := list.append([l], !sources)
|
||||
server.register(namespace="queues",
|
||||
"s#{!source_id}_skip",
|
||||
|
@ -70,6 +72,8 @@ create_source()
|
|||
|
||||
queue = add(!sources, normalize=false)
|
||||
|
||||
queue = map_metadata(update=false, queue_metadata_callback, queue)
|
||||
|
||||
output.dummy(fallible=true, queue)
|
||||
|
||||
http = input.http_restart(id="http")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue