From c0393b443e02663ccc3d174129cf330f99955534 Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:23:49 +0900 Subject: [PATCH] Updated How to add custom license scheme yourself (markdown) --- How-to-add-custom-license-scheme-yourself.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/How-to-add-custom-license-scheme-yourself.md b/How-to-add-custom-license-scheme-yourself.md index 13b9959..512171c 100644 --- a/How-to-add-custom-license-scheme-yourself.md +++ b/How-to-add-custom-license-scheme-yourself.md @@ -2,7 +2,7 @@ * Basic level of network skill -* Basic level of Python skill (Especially about Pywidevine and Pyodide) +* Basic level of Python skill (Especially about Pywidevine) # Guide @@ -38,10 +38,14 @@ See [Contribution](https://github.com/FoxRefire/wvg/wiki/Contribution) for more [*licUrl*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L17): License URL as String -[*licHeaders*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L18): Headers as JSON string, Automatically converted into JSON object in pre.py +[*licHeaders*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L18): Headers as JSON string, you can use it directly in scheme as object as it [automatically converted into JSON object in pre.py](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L90) [*licBody*](https://github.com/FoxRefire/wvg/blob/next/popup.js#L19): Request payloads of License server as Base64 String. Use loadBody() API to able to load it in scheme. [*corsFetch()*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L47): Use this method instead of pyfetch if the license server requires that the Origin header be set to the original domain. -[*loadBody()*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L67): Loads Base64 encoded requestBody into scheme \ No newline at end of file +[*loadBody()*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L67): Loads Base64 encoded requestBody into scheme + +[*challenge*](https://github.com/FoxRefire/wvg/blob/next/python/pre.py#L88): License challenge as bytes + +[*licence*](https://github.com/FoxRefire/wvg/blob/next/python/after.py#L3): Set the acquired license into this variable and it will be automatically parsed by pywidevine. \ No newline at end of file