"Fix IndexError when emptying Kodi playqueue"

This commit is contained in:
croneter 2018-04-15 13:16:58 +02:00
parent 8bea313865
commit ecc8df014c

View file

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