diff --git a/mattebox/app.py b/mattebox/app.py index d15dae6..3333c56 100644 --- a/mattebox/app.py +++ b/mattebox/app.py @@ -22,14 +22,17 @@ class MatteBOX: def __get(self, endpoint: str, params: dict) -> dict: res = requests.get( - API + endpoint, params=params, cookies=self.cookies, headers={ + API + endpoint, + params=params, + cookies=self.cookies, + headers={ "X-NanguTv-Platform-Id": PLATFORM_ID, "X-NanguTv-Device-size": "normal", "X-NanguTv-Device-Name": security_values.device_name, "X-NanguTv-App-Version": security_values.app_version, "X-NanguTv-Device-density": security_values.device_density, "User-Agent": security_values.user_agent, - } + }, ) if res.status_code >= 400: raise requests.exceptions.BaseHTTPError(res.text)