From 24b572674d2ba85d1ab966560ddbbfd2f732ac67 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 10 Sep 2016 16:17:41 -0500 Subject: [PATCH] Update to use special protocol Otherwise it breaks path substitution set in advancedsettings --- resources/lib/connectmanager.py | 2 +- resources/lib/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/connectmanager.py b/resources/lib/connectmanager.py index f44ad418..f7dae624 100644 --- a/resources/lib/connectmanager.py +++ b/resources/lib/connectmanager.py @@ -48,7 +48,7 @@ class ConnectManager(object): deviceName=device_name, deviceId=device_id) self._connect.setFilePath(xbmc.translatePath( - addon.getAddonInfo('profile')).decode('utf-8')) + "special://profile/addon_data/").decode('utf-8')) self.state = self._connect.connect() log.info("Started with: %s", self.state) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 320edd17..406b7371 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -432,7 +432,7 @@ def reset(): import connectmanager # Delete the settings addon = xbmcaddon.Addon() - addondir = xbmc.translatePath(addon.getAddonInfo('profile')).decode('utf-8') + addondir = xbmc.translatePath("special://profile/addon_data/").decode('utf-8') dataPath = "%ssettings.xml" % addondir xbmcvfs.delete(dataPath) log.info("Deleting: settings.xml")