From 82a2706e4cae00fb4d5c881fc4d532d5d513a876 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 5 Sep 2021 09:06:57 +0200 Subject: [PATCH] [api] Add method for downloading SDL data --- legendary/api/lgd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legendary/api/lgd.py b/legendary/api/lgd.py index 8275f81..ebc235f 100644 --- a/legendary/api/lgd.py +++ b/legendary/api/lgd.py @@ -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()