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
|
@ -1,10 +1,14 @@
|
|||
def notify(m)
|
||||
#current_media_id := string_of(m['schedule_table_id'])
|
||||
command = "/usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --media-id=#{m['schedule_table_id']} &"
|
||||
log(command)
|
||||
system(command)
|
||||
end
|
||||
|
||||
def notify_queue(m)
|
||||
queue_metadata := m
|
||||
notify(m)
|
||||
end
|
||||
|
||||
def notify_stream(m)
|
||||
json_str = string.replace(pattern="\n",(fun (s) -> ""), json_of(m))
|
||||
#if a string has a single apostrophe in it, let's comment it out by ending the string before right before it
|
||||
|
@ -27,6 +31,10 @@ def append_title(m) =
|
|||
end
|
||||
end
|
||||
|
||||
def queue_metadata_callback(m) =
|
||||
append_title(!queue_metadata)
|
||||
end
|
||||
|
||||
def crossfade_airtime(s)
|
||||
#duration is automatically overwritten by metadata fields passed in
|
||||
#with audio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue