Update to use special protocol

Otherwise it breaks path substitution set in advancedsettings
This commit is contained in:
angelblue05 2016-09-10 16:17:41 -05:00
parent b34007f727
commit 24b572674d
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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")