mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Adjust local database reset
Add music reset dialog
This commit is contained in:
parent
f9f3c00f53
commit
ebb4139d48
2 changed files with 5 additions and 1 deletions
|
@ -785,3 +785,7 @@ msgstr ""
|
|||
msgctxt "#33161"
|
||||
msgid "Check for updates"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#33162"
|
||||
msgid "Reset the music library?"
|
||||
msgstr ""
|
||||
|
|
|
@ -169,7 +169,7 @@ def reset_kodi():
|
|||
if name != 'version':
|
||||
videodb.cursor.execute("DELETE FROM " + name)
|
||||
|
||||
if settings('enableMusic.bool'):
|
||||
if settings('enableMusic.bool') or dialog("yesno", heading="{emby}", line1=_(33162)):
|
||||
|
||||
with Database('music') as musicdb:
|
||||
musicdb.cursor.execute("SELECT tbl_name FROM sqlite_master WHERE type='table'")
|
||||
|
|
Loading…
Reference in a new issue