Adjust local database reset

Add music reset dialog
This commit is contained in:
angelblue05 2018-09-09 14:31:09 -05:00
parent f9f3c00f53
commit ebb4139d48
2 changed files with 5 additions and 1 deletions

View file

@ -785,3 +785,7 @@ msgstr ""
msgctxt "#33161" msgctxt "#33161"
msgid "Check for updates" msgid "Check for updates"
msgstr "" msgstr ""
msgctxt "#33162"
msgid "Reset the music library?"
msgstr ""

View file

@ -169,7 +169,7 @@ def reset_kodi():
if name != 'version': if name != 'version':
videodb.cursor.execute("DELETE FROM " + name) 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: with Database('music') as musicdb:
musicdb.cursor.execute("SELECT tbl_name FROM sqlite_master WHERE type='table'") musicdb.cursor.execute("SELECT tbl_name FROM sqlite_master WHERE type='table'")