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:
Faizal 2026-10-23 18:13:40 +05:30 committed by GitHub
parent 42f6bdeadd
commit 93b6695d57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()