diff --git a/functions.py b/functions.py index 22736e3..846d037 100644 --- a/functions.py +++ b/functions.py @@ -43,7 +43,7 @@ except: __settings__ = xbmcaddon.Addon(id='plugin.video.torrenter') __language__ = __settings__.getLocalizedString ROOT = __settings__.getAddonInfo('path') # .decode('utf-8').encode(sys.getfilesystemencoding()) -userStorageDirectory = __settings__.getSetting("storage") +userStorageDirectory = xbmc.translatePath(__settings__.getSetting("storage")) torrentFilesDirectory = 'torrents' USERAGENT = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0" __addonpath__ = __settings__.getAddonInfo('path') @@ -2265,4 +2265,4 @@ def get_item(): }) item.setInfo(type='Video', infoLabels=infoLabels) - return item \ No newline at end of file + return item