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

Automatically select correct request based on content of it even when License URL is used for multiple purposes #25

Open
ElCap13 opened this issue Jun 10, 2024 · 1 comment
Labels
enhancement New feature or request P3

Comments

@ElCap13
Copy link
Contributor

ElCap13 commented Jun 10, 2024

the url selection for polsatboxgo isnt working correctly, its choosing the wrong request.
https://b2c-www.redefine.pl/rpc/drm is used for basic json requests to "checkProductAccess" and also for license requests.

eg. "checkProductAccess" request

HTTP POST https://b2c-www.redefine.pl/rpc/drm/

request payload:
{"id":1,"jsonrpc":"2.0","method":"checkProductAccess","params":{<removed>}}

response: 
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "status": 0,
        "statusDescription": "has access",
        "statusUserMessage": "Dostęp do materiału jest bezpłatny"
    }
}

license request (removing all the extra fields)

HTTP POST https://b2c-www.redefine.pl/rpc/drm/

request payload:
{"jsonrpc":"2.0","id":1,"method":"getWidevineLicense","params":{<removed>}}

response:
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": {
        "object": {
            "license": "CAIS......",
    }
}

you can manually workaround the issue by manually selecting the last request to "https://b2c-www.redefine.pl/rpc/drm/", but it would be good to be able to automatically choose the right request, either by request/response data, headers or even just the most recent request.

@papa0112

This comment was marked as off-topic.

@FoxRefire FoxRefire added enhancement New feature or request P3 labels Jul 25, 2024
@FoxRefire FoxRefire changed the title polsat select url isnt working correctly Automatically select correct request based on content of it even when License URL is used for multiple purposes Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3
Projects
None yet
Development

No branches or pull requests

3 participants