mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[api] Add method for downloading SDL data
This commit is contained in:
parent
72aea19853
commit
82a2706e4c
|
@ -22,3 +22,9 @@ class LGDAPI:
|
|||
timeout=10.0)
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
||||
def get_sdl_config(self, app_name):
|
||||
r = self.session.get(f'https://{self._api_host}/v1/sdl/{app_name}.json',
|
||||
timeout=10.0)
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
|
Loading…
Reference in a new issue