CC-4564: Webstream: Book same webstream twice in Scheduler, the 2nd one doesn't get played

-fixed
This commit is contained in:
Martin Konecny 2012-10-19 15:39:45 -04:00
parent 1d4b905572
commit 9dfee6aa68
2 changed files with 3 additions and 1 deletions

View File

@ -713,6 +713,7 @@ SQL;
'end' => $stream_end, 'end' => $stream_end,
'uri' => $uri, 'uri' => $uri,
'type' => 'stream_buffer_end', 'type' => 'stream_buffer_end',
'row_id' => $item["id"],
'independent_event' => true 'independent_event' => true
); );
self::appendScheduleItem($data, $stream_end, $schedule_item); self::appendScheduleItem($data, $stream_end, $schedule_item);

View File

@ -455,6 +455,7 @@ class PypoPush(Thread):
tn = telnetlib.Telnet(LS_HOST, LS_PORT) tn = telnetlib.Telnet(LS_HOST, LS_PORT)
msg = 'dynamic_source.id %s\n' % media_item['row_id'] msg = 'dynamic_source.id %s\n' % media_item['row_id']
self.logger.debug(msg)
tn.write(msg) tn.write(msg)
#example: dynamic_source.read_start http://87.230.101.24:80/top100station.mp3 #example: dynamic_source.read_start http://87.230.101.24:80/top100station.mp3
@ -523,7 +524,7 @@ class PypoPush(Thread):
tn = telnetlib.Telnet(LS_HOST, LS_PORT) tn = telnetlib.Telnet(LS_HOST, LS_PORT)
#dynamic_source.stop http://87.230.101.24:80/top100station.mp3 #dynamic_source.stop http://87.230.101.24:80/top100station.mp3
msg = 'dynamic_source.read_stop %s\n' % media_item['uri'].encode('latin-1') msg = 'dynamic_source.read_stop %s\n' % media_item['row_id']
self.logger.debug(msg) self.logger.debug(msg)
tn.write(msg) tn.write(msg)