Increase speed for getting plex id from kodi id
This commit is contained in:
parent
7be194a9c3
commit
8f30a466ff
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ class Plex_DB_Functions():
|
||||||
SELECT plex_id, parent_id, plex_type
|
SELECT plex_id, parent_id, plex_type
|
||||||
FROM plex
|
FROM plex
|
||||||
WHERE kodi_id = ? AND kodi_type = ?
|
WHERE kodi_id = ? AND kodi_type = ?
|
||||||
|
LIMIT 1
|
||||||
'''
|
'''
|
||||||
self.plexcursor.execute(query, (kodi_id, kodi_type,))
|
self.plexcursor.execute(query, (kodi_id, kodi_type,))
|
||||||
return self.plexcursor.fetchone()
|
return self.plexcursor.fetchone()
|
||||||
|
|
Loading…
Reference in a new issue