mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix for db reset
setSetting() now works to reset the initial scan state. I also removed deprecated behavior from addon.xml
This commit is contained in:
parent
9d2d2788b2
commit
0ba24d8dbd
3 changed files with 8 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
</requires>
|
</requires>
|
||||||
<extension point="xbmc.python.pluginsource"
|
<extension point="xbmc.python.script"
|
||||||
library="default.py">
|
library="default.py">
|
||||||
<provides>executable video audio image</provides>
|
<provides>executable video audio image</provides>
|
||||||
</extension>
|
</extension>
|
||||||
|
|
|
@ -186,8 +186,7 @@ def reset():
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
||||||
# reset the install run flag
|
# reset the install run flag
|
||||||
addon = xbmcaddon.Addon(id='plugin.video.emby')
|
WINDOW.setProperty("SyncInstallRunDone", "false")
|
||||||
addon.setSetting("SyncInstallRunDone", "false") # this is not working for some reason
|
|
||||||
|
|
||||||
dialog = xbmcgui.Dialog()
|
dialog = xbmcgui.Dialog()
|
||||||
dialog.ok('Emby Reset', 'Database reset has completed, kodi will now restart to apply the changes.')
|
dialog.ok('Emby Reset', 'Database reset has completed, kodi will now restart to apply the changes.')
|
||||||
|
|
|
@ -130,6 +130,12 @@ class Service():
|
||||||
xbmc.log("Not authenticated yet")
|
xbmc.log("Not authenticated yet")
|
||||||
|
|
||||||
utils.logMsg("MB3 Sync Service", "stopping Service",0)
|
utils.logMsg("MB3 Sync Service", "stopping Service",0)
|
||||||
|
|
||||||
|
# If user reset library database.
|
||||||
|
WINDOW = xbmcgui.Window(10000)
|
||||||
|
if WINDOW.getProperty("SyncInstallRunDone") == "false":
|
||||||
|
addon = xbmcaddon.Addon('plugin.video.emby')
|
||||||
|
addon.setSetting("SyncInstallRunDone", "false")
|
||||||
|
|
||||||
if (self.newWebSocketThread != None):
|
if (self.newWebSocketThread != None):
|
||||||
ws.stopClient()
|
ws.stopClient()
|
||||||
|
|
Loading…
Reference in a new issue