Fix UnboundLocalError: local variable 'identifier' referenced before assignment
This commit is contained in:
parent
9f18288e80
commit
ab52521f73
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue