Increase speed for getting plex id from kodi id

This commit is contained in:
Croneter 2018-04-11 08:50:51 +02:00
parent 7be194a9c3
commit 8f30a466ff
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ class Plex_DB_Functions():
SELECT plex_id, parent_id, plex_type
FROM plex
WHERE kodi_id = ? AND kodi_type = ?
LIMIT 1
'''
self.plexcursor.execute(query, (kodi_id, kodi_type,))
return self.plexcursor.fetchone()