Kodi 18: Ensure that we're setting music scan flag correctly upon boot

- Should fix #561
This commit is contained in:
croneter 2018-12-02 15:25:54 +01:00
parent 3c0bb49fbf
commit fb3f1d4669
2 changed files with 3 additions and 1 deletions

View file

@ -61,8 +61,9 @@ def setup_kodi_default_entries():
VALUES (?, ?, ?)
''', (1, '[Missing Tag]', 'Artist Tag Missing'))
if v.KODIVERSION >= 18:
kodidb.cursor.execute('DELETE FROM versiontagscan')
kodidb.cursor.execute('''
INSERT OR REPLACE INTO versiontagscan(
INSERT INTO versiontagscan(
idVersion,
iNeedsScan,
lastscanned)

View file

@ -220,6 +220,7 @@ class Sync(backgroundthread.KillableThread):
plex_db.initialize()
# Hack to speed up look-ups for actors (giant table!)
utils.create_kodi_db_indicees()
kodi_db.setup_kodi_default_entries()
with kodi_db.KodiVideoDB() as kodidb:
# Setup the paths for addon-paths (even when using direct paths)
kodidb.setup_path_table()