Merge pull request #1683 from croneter/py3-fix-unbound
Fix UnboundLocalError: local variable 'identifier' referenced before assignment
This commit is contained in:
commit
902c56b8f7
1 changed files with 2 additions and 0 deletions
|
@ -611,6 +611,8 @@ class KodiVideoDB(common.KodiDBBase):
|
||||||
identifier = 'idMovie'
|
identifier = 'idMovie'
|
||||||
elif kodi_type == v.KODI_TYPE_EPISODE:
|
elif kodi_type == v.KODI_TYPE_EPISODE:
|
||||||
identifier = 'idEpisode'
|
identifier = 'idEpisode'
|
||||||
|
else:
|
||||||
|
return
|
||||||
self.cursor.execute('SELECT idFile FROM %s WHERE %s = ? LIMIT 1'
|
self.cursor.execute('SELECT idFile FROM %s WHERE %s = ? LIMIT 1'
|
||||||
% (kodi_type, identifier), (kodi_id, ))
|
% (kodi_type, identifier), (kodi_id, ))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue