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

View file

@ -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()