Fix typo in settings path

This commit is contained in:
angelblue05 2016-09-10 18:21:27 -05:00
parent 17cc2116e4
commit 7fb957a788
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ class ConnectManager(object):
deviceName=device_name, deviceName=device_name,
deviceId=device_id) deviceId=device_id)
self._connect.setFilePath(xbmc.translatePath( self._connect.setFilePath(xbmc.translatePath(
"special://profile/addon_data/").decode('utf-8')) "special://profile/addon_data/plugin.video.emby").decode('utf-8'))
self.state = self._connect.connect() self.state = self._connect.connect()
log.info("Started with: %s", self.state) log.info("Started with: %s", self.state)

View file

@ -411,10 +411,10 @@ def reset():
import connectmanager import connectmanager
# Delete the settings # Delete the settings
addon = xbmcaddon.Addon() addon = xbmcaddon.Addon()
addondir = xbmc.translatePath("special://profile/addon_data/").decode('utf-8') addondir = xbmc.translatePath(
"special://profile/addon_data/plugin.video.emby/").decode('utf-8')
dataPath = "%ssettings.xml" % addondir dataPath = "%ssettings.xml" % addondir
xbmcvfs.delete(dataPath) xbmcvfs.delete(dataPath)
log.info("Deleting: settings.xml")
connectmanager.ConnectManager().clear_data() connectmanager.ConnectManager().clear_data()
dialog.ok(heading=language(29999), line1=language(33088)) dialog.ok(heading=language(29999), line1=language(33088))