diff --git a/resources/lib/kodi_db/video.py b/resources/lib/kodi_db/video.py index 36b5fd9a..887d8c4f 100644 --- a/resources/lib/kodi_db/video.py +++ b/resources/lib/kodi_db/video.py @@ -611,6 +611,8 @@ class KodiVideoDB(common.KodiDBBase): identifier = 'idMovie' elif kodi_type == v.KODI_TYPE_EPISODE: identifier = 'idEpisode' + else: + return self.cursor.execute('SELECT idFile FROM %s WHERE %s = ? LIMIT 1' % (kodi_type, identifier), (kodi_id, )) try: