Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ease of use changes #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions l3.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@
from cdm.formats import wv_proto2_pb2 as wv_proto2
from urllib.parse import urlparse
import logging
import uncurl
import sys
# logging.basicConfig(level=logging.DEBUG)
MDP_URL = input('\nInput MPD URL: ')
lic_url = input('License URL: ')
try:
MDP_URL = sys.argv[1]
print("MDP connection successful\n", MDP_URL)
lic_url = sys.argv[2]
except:
MDP_URL = input('\nInput MPD URL: ')
lic_url = input('\nInput License URL: ')

License_headers = requests.head(lic_url).headers
lic_headers = requests.head(lic_url).headers
print("\nLicense connection successful...\n", lic_url)

#replace headers
headers.headers.update(lic_headers)

# hardcoded for kinopoisk.ru
# lic_url = 'https://widevine-proxy.ott.yandex.ru/proxy'
responses = []
Expand Down