mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +00:00
Fix discovery toggle
This commit is contained in:
parent
4ed90a9055
commit
2a689397e5
1 changed files with 6 additions and 2 deletions
|
@ -110,7 +110,6 @@ class Database(object):
|
||||||
modified['file'] = file.decode('utf-8')
|
modified['file'] = file.decode('utf-8')
|
||||||
|
|
||||||
LOG.info("Discovered database: %s", modified)
|
LOG.info("Discovered database: %s", modified)
|
||||||
self.discovered = True
|
|
||||||
|
|
||||||
return xbmc.translatePath("special://database/%s" % modified['file']).decode('utf-8')
|
return xbmc.translatePath("special://database/%s" % modified['file']).decode('utf-8')
|
||||||
|
|
||||||
|
@ -144,7 +143,12 @@ class Database(object):
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
databases[file] = discovered if discovered and discovered != loaded else loaded
|
if discovered and discovered != loaded:
|
||||||
|
databases[file] = discovered
|
||||||
|
self.discovered = True
|
||||||
|
else:
|
||||||
|
databases[file] = loaded
|
||||||
|
|
||||||
databases['database_set%s' % file] = True
|
databases['database_set%s' % file] = True
|
||||||
LOG.info("Database locked in: %s", databases[file])
|
LOG.info("Database locked in: %s", databases[file])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue