Metadata isn't correct during playing

-should be fixed
This commit is contained in:
Martin Konecny 2013-06-12 12:43:27 -04:00
parent 21c84dcaad
commit 0e560d89ad
2 changed files with 14 additions and 2 deletions

View file

@ -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