File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
monthsBeforeArtsExpiration = int (__addon__ .getSetting ("arts-expire-after-months" )) # Default is 2 months
14
14
15
15
# define the cache file to reside in the ..\Kodi\userdata\addon_data\(your addon)
16
- addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' ))
16
+ addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' )). decode ( 'utf-8' )
17
17
ART_AVAILABILITY_CACHE_FILE = xbmc .translatePath (os .path .join (addonUserDataFolder , 'requests_cache_arts' ))
18
18
19
19
cached_requests = requests_cache .core .CachedSession (ART_AVAILABILITY_CACHE_FILE , backend = 'sqlite' ,
Original file line number Diff line number Diff line change 13
13
from util import log
14
14
15
15
__addon__ = xbmcaddon .Addon ()
16
+ minutesBeforeGamesListsExpiration = int (__addon__ .getSetting ("games-expire-after-minutes" )) # Default is 3 days
17
+
16
18
# define the cache file to reside in the ..\Kodi\userdata\addon_data\(your addon)
17
- addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' ))
19
+ addonUserDataFolder = xbmc .translatePath (__addon__ .getAddonInfo ('profile' )). decode ( 'utf-8' )
18
20
STEAM_GAMES_CACHE_FILE = xbmc .translatePath (os .path .join (addonUserDataFolder , 'requests_cache_games' ))
19
- minutesBeforeGamesListsExpiration = int (xbmcplugin .getSetting (int (sys .argv [1 ]), "games-expire-after-minutes" )) # Default is 3 days
20
21
21
22
# cache expires after: 86400=1 day 604800=7 days
22
23
cached_requests = requests_cache .core .CachedSession (STEAM_GAMES_CACHE_FILE , backend = 'sqlite' ,
You can’t perform that action at this time.
0 commit comments