Fix Plex playQueue ID not being recorded

This commit is contained in:
tomkat83 2017-01-12 20:02:38 +01:00
parent 30bcafea05
commit 359603ac0f

View file

@ -292,7 +292,7 @@ class PlaybackUtils():
api = API(item)
if api.getType() == PLEX_TYPE_CLIP:
self.add_trailer(item)
continue
else:
with Get_Plex_DB() as plex_db:
db_item = plex_db.getItem_byId(api.getRatingKey())
try:
@ -309,7 +309,8 @@ class PlaybackUtils():
except TypeError:
# Item not in Kodi DB
self.add_trailer(item)
continue
self.playqueue.items[self.currentPosition - 1].ID = item.get(
'%sItemID' % self.playqueue.kind)
def add_trailer(self, item):
# Playurl needs to point back so we can get metadata!