Don't reset videoversionstype table

This commit is contained in:
mcarlton00 2024-03-29 09:02:14 -04:00
parent 64b1c37ed4
commit 309e1086ac
1 changed files with 2 additions and 1 deletions

View File

@ -255,7 +255,8 @@ def reset_kodi():
for table in videodb.cursor.fetchall(): for table in videodb.cursor.fetchall():
name = table[0] name = table[0]
if name != 'version': # These tables are populated by Kodi and we shouldn't wipe them
if name not in ['version', 'videoversiontype']:
videodb.cursor.execute("DELETE FROM " + name) videodb.cursor.execute("DELETE FROM " + name)
if settings('enableMusic.bool') or dialog("yesno", "{jellyfin}", translate(33162)): if settings('enableMusic.bool') or dialog("yesno", "{jellyfin}", translate(33162)):