Fix playback report for trailers seeming like movie

This commit is contained in:
tomkat83 2016-04-11 15:11:50 +02:00
parent f368f02abf
commit 7f956c6f18

View file

@ -166,14 +166,8 @@ class KodiMonitor(xbmc.Monitor):
try:
kodiid = item['id']
except (KeyError, TypeError):
log('Kodi did not give us a Kodi item id, trying to get from item '
'title', 0)
# Try to get itemid with the element's title
with kodidb.GetKodiDB('video') as kodi_db:
kodiid = kodi_db.getIdFromTitle(item)
if kodiid is False:
log("Item is invalid for PMS playstate update.", 0)
return
log("Item is invalid for PMS playstate update.", 0)
return
# Get Plex' item id
with embydb.GetEmbyDB() as emby_db: