Format code

This commit is contained in:
samedamci 2021-09-16 19:05:22 +02:00
parent 37b3e9b753
commit 9cce58625e
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

View File

@ -22,14 +22,17 @@ class MatteBOX:
def __get(self, endpoint: str, params: dict) -> dict: def __get(self, endpoint: str, params: dict) -> dict:
res = requests.get( 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-Platform-Id": PLATFORM_ID,
"X-NanguTv-Device-size": "normal", "X-NanguTv-Device-size": "normal",
"X-NanguTv-Device-Name": security_values.device_name, "X-NanguTv-Device-Name": security_values.device_name,
"X-NanguTv-App-Version": security_values.app_version, "X-NanguTv-App-Version": security_values.app_version,
"X-NanguTv-Device-density": security_values.device_density, "X-NanguTv-Device-density": security_values.device_density,
"User-Agent": security_values.user_agent, "User-Agent": security_values.user_agent,
} },
) )
if res.status_code >= 400: if res.status_code >= 400:
raise requests.exceptions.BaseHTTPError(res.text) raise requests.exceptions.BaseHTTPError(res.text)