mirror of
https://github.com/derrod/legendary.git
synced 2026-10-24 18:36:31 +00:00
Update timeout for get_game_assets method
Increased timeout for game assets request to 300 seconds. this for people who have 500+ games and gets timeout error. Tested with an account contained 500+ games and 1000+ fab assets. Work fine without any other error messages
This commit is contained in:
parent
42f6bdeadd
commit
93b6695d57
|
|
@ -171,7 +171,7 @@ class EPCAPI:
|
|||
|
||||
def get_game_assets(self, platform='Windows', label='Live'):
|
||||
r = self.session.get(f'https://{self._launcher_host}/launcher/api/public/assets/{platform}',
|
||||
params=dict(label=label), timeout=self.request_timeout)
|
||||
params=dict(label=label), timeout=300)
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue