Skip to content

Commit

Permalink
Merge pull request #843 from mcarlton00/omega-reset
Browse files Browse the repository at this point in the history
Don't reset videoversiontype table
  • Loading branch information
oddstr13 committed Mar 29, 2024
2 parents 64b1c37 + 309e108 commit badcdbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jellyfin_kodi/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit badcdbe

Please sign in to comment.