From 5788f3c7ea91b213f62faf1a3d80d10a0cdb022b Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 11 Apr 2016 12:34:06 +0200 Subject: [PATCH] Revert "Cleanup Plex Companion" This reverts commit dd51766d3d2fc7207e1a3149c62587baf2cdbf01. --- resources/lib/embydb_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/embydb_functions.py b/resources/lib/embydb_functions.py index d6485fe3..ee4cf558 100644 --- a/resources/lib/embydb_functions.py +++ b/resources/lib/embydb_functions.py @@ -234,7 +234,7 @@ class Embydb_Functions(): return items - def getPlexId(self, kodiid, mediatype): + def getPlexId(self, kodiid): """ Returns the Plex ID usind the Kodiid. Result: (Plex Id, Parent's Plex Id) @@ -242,10 +242,10 @@ class Embydb_Functions(): query = ' '.join(( "SELECT emby_id, parent_id", "FROM emby", - "WHERE kodi_id = ? AND media_type = ?" + "WHERE kodi_id = ?" )) try: - self.embycursor.execute(query, (kodiid, mediatype)) + self.embycursor.execute(query, (kodiid)) item = self.embycursor.fetchone() return item except: