Fix IndexError when emptying Kodi playqueue

This commit is contained in:
Croneter 2018-04-10 19:26:15 +02:00
parent 1e43f1cc77
commit a87b40c612

View file

@ -254,6 +254,7 @@ class KodiMonitor(xbmc.Monitor):
playqueue = PQ.PLAYQUEUES[data['playlistid']]
if not playqueue.is_pkc_clear():
playqueue.clear(kodi=False)
playqueue.pkc_edit = True
else:
LOG.debug('Detected PKC clear - ignoring')