Fix database discovery

This commit is contained in:
angelblue05 2019-01-14 04:51:14 -06:00
parent 9cc8405a70
commit d0c5cf5864
2 changed files with 7 additions and 3 deletions

View file

@ -124,10 +124,10 @@ class Library(threading.Thread):
with Database('music') as musicdb:
if kodidb.discovered or musicdb.discovered:
if kodidb.path != settings('DiscoveredDatabase'):
if kodidb.discovered_file != settings('DiscoveredDatabase'):
LOG.info("Newly discovered database: %s", kodidb.path)
settings('DiscoveredDatabase', kodidb.path)
settings('DiscoveredDatabase', kodidb.discovered_file)
self.monitor.settings['enable_db_discovery'] = True
settings('AskDiscoverDatabase.bool', True)