CC-5347 : Random Error think to do with updating is scheduled status of a webstream

not sending a notify message if webstream source is -1
This commit is contained in:
Naomi 2013-09-30 15:56:26 -04:00
parent 8a354a8c45
commit a34ae69d4b
1 changed files with 5 additions and 2 deletions

View File

@ -16,8 +16,11 @@ def notify_stream(m)
#escaping the apostrophe, and then starting a new string right after it. This is why we use 3 apostrophes.
json_str = string.replace(pattern="'",(fun (s) -> "'\''"), json_str)
command = "/usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --webstream='#{json_str}' --media-id=#{!current_dyn_id} &"
log(command)
system(command)
if !current_dyn_id != "-1" then
log(command)
system(command)
end
end
# A function applied to each metadata chunk