restore xbmc allowed settings via json

This commit is contained in:
Rob Weber
2014-10-31 11:40:47 -05:00
parent 2fc26b6e8c
commit 0b6a3ae506
2 changed files with 102 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import utils as utils
import time
import json
from vfs import XBMCFileSystem,DropboxFileSystem,ZipFileSystem
from resources.lib.guisettings import GuiSettingsManager
def folderSort(aKey):
result = aKey[0]
@@ -423,6 +424,11 @@ class XbmcBackup:
self.xbmc_vfs.rmfile(xbmc.translatePath("special://temp/" + self.restore_point))
self.xbmc_vfs.rmdir(self.remote_vfs.root_path)
if(utils.getSetting("backup_config") == "true"):
#update the guisettings information (or what we can from it)
gui_settings = GuiSettingsManager('special://home/userdata/guisettings.xml')
gui_settings.run()
#call update addons to refresh everything
xbmc.executebuiltin('UpdateLocalAddons')