Skip to content

Commit

Permalink
Fix discovery toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
tamara-plante committed Jan 12, 2019
1 parent 4ed90a9 commit 2a68939
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/lib/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def _discover_database(self, database):
modified['file'] = file.decode('utf-8')

LOG.info("Discovered database: %s", modified)
self.discovered = True

return xbmc.translatePath("special://database/%s" % modified['file']).decode('utf-8')

Expand Down Expand Up @@ -144,7 +143,12 @@ def _sql(self, file):
except Exception:
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
LOG.info("Database locked in: %s", databases[file])

Expand Down

0 comments on commit 2a68939

Please sign in to comment.