Fix UnboundLocalError: local variable 'identifier' referenced before assignment

This commit is contained in:
croneter 2021-10-30 17:43:42 +02:00
parent 9f18288e80
commit ab52521f73

View file

@ -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: