storage path usage fix for functions.py

pull/15/head
ElAntonioB 2016-12-29 09:15:52 +02:00 committed by GitHub
parent 09a555df0f
commit 6b5ffb56da
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ except:
__settings__ = xbmcaddon.Addon(id='plugin.video.torrenter') __settings__ = xbmcaddon.Addon(id='plugin.video.torrenter')
__language__ = __settings__.getLocalizedString __language__ = __settings__.getLocalizedString
ROOT = __settings__.getAddonInfo('path') # .decode('utf-8').encode(sys.getfilesystemencoding()) ROOT = __settings__.getAddonInfo('path') # .decode('utf-8').encode(sys.getfilesystemencoding())
userStorageDirectory = __settings__.getSetting("storage") userStorageDirectory = xbmc.translatePath(__settings__.getSetting("storage"))
torrentFilesDirectory = 'torrents' torrentFilesDirectory = 'torrents'
USERAGENT = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0" USERAGENT = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0"
__addonpath__ = __settings__.getAddonInfo('path') __addonpath__ = __settings__.getAddonInfo('path')
@ -2265,4 +2265,4 @@ def get_item():
}) })
item.setInfo(type='Video', infoLabels=infoLabels) item.setInfo(type='Video', infoLabels=infoLabels)
return item return item