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 1313monthsBeforeArtsExpiration = int (__addon__ .getSetting ("arts-expire-after-months" )) # Default is 2 months
1414
1515# 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' )
1717ART_AVAILABILITY_CACHE_FILE = xbmc .translatePath (os .path .join (addonUserDataFolder , 'requests_cache_arts' ))
1818
1919cached_requests = requests_cache .core .CachedSession (ART_AVAILABILITY_CACHE_FILE , backend = 'sqlite' ,
Original file line number Diff line number Diff line change 1313from util import log
1414
1515__addon__ = xbmcaddon .Addon ()
16+ minutesBeforeGamesListsExpiration = int (__addon__ .getSetting ("games-expire-after-minutes" )) # Default is 3 days
17+
1618# 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' )
1820STEAM_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
2021
2122# cache expires after: 86400=1 day 604800=7 days
2223cached_requests = requests_cache .core .CachedSession (STEAM_GAMES_CACHE_FILE , backend = 'sqlite' ,
You can’t perform that action at this time.
0 commit comments