CC-5098: Liquidsoap: Restart liquidsoap will make the output stream silence until next song starts
-fixed
This commit is contained in:
parent
c70d17c768
commit
1895686c85
|
@ -174,6 +174,8 @@ class PypoFetch(Thread):
|
||||||
commands.append(('vars.default_dj_fade %s\n' % fade).encode('utf-8'))
|
commands.append(('vars.default_dj_fade %s\n' % fade).encode('utf-8'))
|
||||||
self.pypo_liquidsoap.get_telnet_dispatcher().telnet_send(commands)
|
self.pypo_liquidsoap.get_telnet_dispatcher().telnet_send(commands)
|
||||||
|
|
||||||
|
self.pypo_liquidsoap.clear_queue_tracker()
|
||||||
|
|
||||||
def restart_liquidsoap(self):
|
def restart_liquidsoap(self):
|
||||||
try:
|
try:
|
||||||
self.telnet_lock.acquire()
|
self.telnet_lock.acquire()
|
||||||
|
|
|
@ -195,6 +195,10 @@ class PypoLiquidsoap():
|
||||||
def is_file(self, media_item):
|
def is_file(self, media_item):
|
||||||
return media_item["type"] == eventtypes.FILE
|
return media_item["type"] == eventtypes.FILE
|
||||||
|
|
||||||
|
def clear_queue_tracker(self):
|
||||||
|
for i in self.liq_queue_tracker.keys():
|
||||||
|
self.liq_queue_tracker[i] = None
|
||||||
|
|
||||||
def modify_cue_point(self, link):
|
def modify_cue_point(self, link):
|
||||||
if not self.is_file(link):
|
if not self.is_file(link):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue