From 7f956c6f18fa5f5ac2aa462988141c24cec82037 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 11 Apr 2016 15:11:50 +0200 Subject: [PATCH] Fix playback report for trailers seeming like movie --- resources/lib/kodimonitor.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index e7d87b56..7531a75d 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -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: