Merge pull request #843 from mcarlton00/omega-reset

Don't reset videoversiontype table
This commit is contained in:
Odd Stråbø 2024-03-29 14:12:20 +01:00 committed by GitHub
commit badcdbe08d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,7 +255,8 @@ def reset_kodi():
for table in videodb.cursor.fetchall():
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)
if settings('enableMusic.bool') or dialog("yesno", "{jellyfin}", translate(33162)):