Format code
This commit is contained in:
parent
37b3e9b753
commit
9cce58625e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user