mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-03 14:56:13 +00:00
Revert "Add option to delete user info"
This reverts commit 705b5f29d5
.
This commit is contained in:
parent
705b5f29d5
commit
39f7d67c0e
2 changed files with 3 additions and 20 deletions
13
service.py
13
service.py
|
@ -1,8 +1,6 @@
|
|||
import xbmcaddon
|
||||
import xbmc
|
||||
import xbmcgui
|
||||
import xbmcvfs
|
||||
|
||||
import os
|
||||
import threading
|
||||
import json
|
||||
|
@ -120,7 +118,7 @@ class Service():
|
|||
xbmc.log("Doing_Db_Sync: syncDatabase (Finished) " + str(libSync))
|
||||
countSync = librarySync.updatePlayCounts()
|
||||
xbmc.log("Doing_Db_Sync: updatePlayCounts (Finished) " + str(countSync))
|
||||
xbmc.executebuiltin("UpdateLibrary(video)")
|
||||
|
||||
if(libSync and countSync):
|
||||
startupComplete = True
|
||||
else:
|
||||
|
@ -135,16 +133,9 @@ class Service():
|
|||
|
||||
# If user reset library database.
|
||||
WINDOW = xbmcgui.Window(10000)
|
||||
addon = xbmcaddon.Addon('plugin.video.emby')
|
||||
|
||||
if WINDOW.getProperty("SyncInstallRunDone") == "false":
|
||||
addon = xbmcaddon.Addon('plugin.video.emby')
|
||||
addon.setSetting("SyncInstallRunDone", "false")
|
||||
|
||||
if WINDOW.getProperty("EraseUserInfo") == "true":
|
||||
addondir = xbmc.translatePath(addon.getAddonInfo('profile'))
|
||||
dataPath = os.path.join(addondir + "settings.xml")
|
||||
xbmcvfs.delete(dataPath)
|
||||
xbmc.log("Deleted saved user information for: %s" % user.currUser)
|
||||
|
||||
if (self.newWebSocketThread != None):
|
||||
ws.stopClient()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue