Added proxy support

- Minor code change to prevent bug
This commit is contained in:
TPD94
2024-04-27 18:05:35 -04:00
parent 7b60567512
commit 909c95ed7a
2 changed files with 3 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ def decrypt_content(in_pssh: str = None, license_url: str = None, headers: dict
# Generate the challenge
challenge = cdm.get_license_challenge(session_id, pssh)
if proxy:
if proxy is not None:
# send license challenge
license = requests.post(
url=license_url,

View File

@@ -31,6 +31,8 @@ def post_endpoint():
if data['proxy'] != None:
proxy = data['proxy']
print(proxy)
else:
proxy = None
# Format the headers