Speed-up looking up of existing episodes

This commit is contained in:
croneter 2018-11-04 17:02:01 +01:00
parent 91ea8c8d00
commit 2917bc982f

View file

@ -322,7 +322,7 @@ class Episode(ItemBase, TvShowMixin):
LOG.error('Error getting plex_id for episode, skipping: %s', LOG.error('Error getting plex_id for episode, skipping: %s',
xml.attrib) xml.attrib)
return return
entry = self.plexdb.item_by_id(plex_id) entry = self.plexdb.item_by_id(plex_id, v.PLEX_TYPE_EPISODE)
try: try:
kodi_id = entry[0] kodi_id = entry[0]
old_kodi_fileid = entry[1] old_kodi_fileid = entry[1]