From 50bdeeef266834a82836d710dbd68969a8a3f3e1 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 23 Nov 2012 16:00:10 -0500 Subject: [PATCH] CC-4702: Webstream: When webstream is playing, it isn't marked as 'media_item_played' in cc_schedule --- python_apps/pypo/liquidsoap_scripts/ls_script.liq | 4 +++- python_apps/pypo/pyponotify.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python_apps/pypo/liquidsoap_scripts/ls_script.liq b/python_apps/pypo/liquidsoap_scripts/ls_script.liq index c291c9876..3a9468512 100644 --- a/python_apps/pypo/liquidsoap_scripts/ls_script.liq +++ b/python_apps/pypo/liquidsoap_scripts/ls_script.liq @@ -81,7 +81,9 @@ server.register(namespace="dynamic_source", description="Enable webstream output", usage='start', "output_start", - fun (s) -> begin log("dynamic_source.output_start") webstream_enabled := true "enabled" end) + fun (s) -> begin log("dynamic_source.output_start") + notify([("schedule_table_id", !current_dyn_id)]) + webstream_enabled := true "enabled" end) server.register(namespace="dynamic_source", description="Enable webstream output", usage='stop', diff --git a/python_apps/pypo/pyponotify.py b/python_apps/pypo/pyponotify.py index 96b358e9c..9c2f1688c 100644 --- a/python_apps/pypo/pyponotify.py +++ b/python_apps/pypo/pyponotify.py @@ -114,7 +114,6 @@ class Notify: self.notify_source_status(options.source_name, options.source_status) elif options.webstream: self.notify_webstream_data(options.webstream, options.media_id) - self.notify_media_start_playing(options.media_id) elif options.media_id: self.notify_media_start_playing(options.media_id) elif options.liquidsoap_started: