Skip to content

Commit e71e0f3

Browse files
authored
Fix an issue when obtaining addon settings
Should fix #27
1 parent 6776ce1 commit e71e0f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

resources/steam.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
from 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)
1719
addonUserDataFolder = xbmc.translatePath(__addon__.getAddonInfo('profile')).decode('utf-8')
1820
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
2021

2122
# cache expires after: 86400=1 day 604800=7 days
2223
cached_requests = requests_cache.core.CachedSession(STEAM_GAMES_CACHE_FILE, backend='sqlite',

0 commit comments

Comments
 (0)