Fix for Plex Companion showing last item played

This commit is contained in:
tomkat83 2017-01-12 20:21:33 +01:00
parent aab6a733fe
commit 377827e159

View file

@ -150,7 +150,7 @@ class Playqueue(Thread):
PL.add_item_to_PMS_playlist(playqueue, PL.add_item_to_PMS_playlist(playqueue,
i, i,
kodi_item=new_item) kodi_item=new_item)
for j in range(i+1, len(index)): for j in range(i, len(index)):
index[j] += 1 index[j] += 1
for i in reversed(index): for i in reversed(index):
log.debug('Detected deletion of playqueue element at pos %s' % i) log.debug('Detected deletion of playqueue element at pos %s' % i)