Add support for oqee.tv (#49)

Add support for oqee.tv (french isp live tv)
This commit is contained in:
Psyquoquack 2024-08-12 13:08:25 +00:00 committed by GitHub
parent e3994bdac2
commit b29a91e908
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,7 @@
<option value="GlobalTV">GlobalTV</option>
<option value="moTV">moTV</option>
<option value="NosTV">NosTV</option>
<option value="oqee">Oqee</option>
<option value="Polsat">Polsat</option>
<option value="RedBee">Red Bee Media</option>
<option value="thePlatform">thePlatform</option>

7
python/schemes/oqee.py Normal file
View File

@ -0,0 +1,7 @@
req = loadBody("json")
b64challenge = base64.b64encode(challenge).decode()
req['licenseRequest'] = b64challenge
res = await corsFetch(licUrl, "POST", licHeaders, req, "json")
js.document.getElementById('result').value=res
licence = res["result"]["license"]