From b29a91e908999e96bc8f0a1ccf0851ad02d454cb Mon Sep 17 00:00:00 2001
From: Psyquoquack <90555014+Psyquoquack@users.noreply.github.com>
Date: Mon, 12 Aug 2024 13:08:25 +0000
Subject: [PATCH] Add support for oqee.tv (#49)
Add support for oqee.tv (french isp live tv)
---
popup.html | 1 +
python/schemes/oqee.py | 7 +++++++
2 files changed, 8 insertions(+)
create mode 100644 python/schemes/oqee.py
diff --git a/popup.html b/popup.html
index 44e2bfe..bcd6dff 100644
--- a/popup.html
+++ b/popup.html
@@ -36,6 +36,7 @@
+
diff --git a/python/schemes/oqee.py b/python/schemes/oqee.py
new file mode 100644
index 0000000..3273280
--- /dev/null
+++ b/python/schemes/oqee.py
@@ -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"]