From 6b5ffb56da9e2f90529ed011a86a585fa15f2627 Mon Sep 17 00:00:00 2001 From: ElAntonioB Date: Thu, 29 Dec 2016 09:15:52 +0200 Subject: [PATCH] storage path usage fix for functions.py --- functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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