You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/settings.xml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
<settingid="steam-args"type="text"label="Arguments to pass to your Steam executable"/>
9
9
<settingid="version"type="text"label="Internal version number, do not modify"visible="false"/>
10
10
<settingid="enable-art-fallback"type="bool"default="true"label="Fallback to another art type if a game has missing art. First launch may be longer for large libraries."/>
11
+
<settingid="games-expire-after-minutes"type="number"default="4320"label="Number of minutes before expiration of the games lists cache"/>
11
12
<settingid="arts-expire-after-months"type="number"default="2"label="Number of months before expiration of the arts availability cache"/>
12
13
<settingid="delete-cache"type="action"label="Clean available games and arts cache"action="RunPlugin(plugin://plugin.program.steam.library/delete_cache)"/>
# We send a request to the API, including needed parameters and "include_appinfo" so that game details are returned with the response.
76
-
response=requests.get(url=api_url,
77
-
params={'key': steam_api_key,
78
-
'steamid': steam_user_id,
79
-
'include_appinfo': 1,
80
-
'format': 'json'},
81
-
timeout=10)
95
+
response=cached_requests.get(url=api_url,
96
+
params={'key': steam_api_key,
97
+
'steamid': steam_user_id,
98
+
'include_appinfo': 1,
99
+
'format': 'json'},
100
+
timeout=5)
82
101
83
102
response.raise_for_status() # If the status code indicates an error, raise a HTTPError, which is itself a RequestException, based on the builtin IOError
0 commit comments