Revert "Revert "Cleanup Plex Companion""
This reverts commit 5788f3c7ea
.
This commit is contained in:
parent
5788f3c7ea
commit
18ff3715ac
1 changed files with 3 additions and 3 deletions
|
@ -234,7 +234,7 @@ class Embydb_Functions():
|
||||||
|
|
||||||
return items
|
return items
|
||||||
|
|
||||||
def getPlexId(self, kodiid):
|
def getPlexId(self, kodiid, mediatype):
|
||||||
"""
|
"""
|
||||||
Returns the Plex ID usind the Kodiid. Result:
|
Returns the Plex ID usind the Kodiid. Result:
|
||||||
(Plex Id, Parent's Plex Id)
|
(Plex Id, Parent's Plex Id)
|
||||||
|
@ -242,10 +242,10 @@ class Embydb_Functions():
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
"SELECT emby_id, parent_id",
|
"SELECT emby_id, parent_id",
|
||||||
"FROM emby",
|
"FROM emby",
|
||||||
"WHERE kodi_id = ?"
|
"WHERE kodi_id = ? AND media_type = ?"
|
||||||
))
|
))
|
||||||
try:
|
try:
|
||||||
self.embycursor.execute(query, (kodiid))
|
self.embycursor.execute(query, (kodiid, mediatype))
|
||||||
item = self.embycursor.fetchone()
|
item = self.embycursor.fetchone()
|
||||||
return item
|
return item
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue