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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vrt.py #7519

Merged
merged 2 commits into from Jul 10, 2023
Merged

Update vrt.py #7519

merged 2 commits into from Jul 10, 2023

Conversation

Zprokkel
Copy link
Contributor

@Zprokkel Zprokkel commented Jul 5, 2023

updated the _JWT_SIGNING_KEY and the .js file where it came from

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Fixes #

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

Copilot Summary

馃 Generated by Copilot at efcaefc

Summary

馃洜锔忦煍戰煄烇笍

Update VRT extractor to fix token generation and stream access. Update the key and URL used to sign the tokens from the main.js file.

_JWT_SIGNING_KEY
Updated for VRT player site
Winter streams flow on

Walkthrough

  • Update the key and URL for generating tokens for VRT player (link)

updated the _JWT_SIGNING_KEY and the .js file where it came from
@pukkandan
Copy link
Member

Pls update tests

@pukkandan pukkandan added the site-bug Issue with a specific website label Jul 5, 2023
@bashonly
Copy link
Member

bashonly commented Jul 5, 2023

Are you sure about this? The javascript URL changed, but the code hasn't changed:

    ui() {
        const t = atob("==QP3hjerIVMuJzKSRHUmlVZ0Rkd6hTSN92KzUEVmJnSDlWYmtWeaVVM1AnRw0CM".split("").reverse().join("")),
            i = atob("==AOzYWYjFmYzIDNyQTMmRTYwkjYxcjYiRGO4cjMiZ2Y2MTMwMWNhhDZjNWO0IzNwETNxcDN0I2Y1UDZwATNmVjY".split("").reverse().join("")),
            e = atob("==QN5UTYjVTZklzNyImN0ETZ0gzYzQjY3cDN5cTNxImY0ITYwAzN2E2YhNmNxcjMmJmZ2UWYxITN0ATN3gTOzIDZ".split("").reverse().join("")),
            s = atob("==QZhRjMhFDOhFzYlVDMiJzYkdTZhBDOmZTYjRzN4EjN2gzMmFGZ1IzN1EGZ2UDOiZWO2cDMwcjM4cDZxUjM5EmM".split("").reverse().join(""));
        return this.ri.indexOf("-dev") >= 0 ? {
            a: t,
            b: i
        } : this.ri.indexOf("-stag") >= 0 ? {
            a: t,
            b: e
        } : {
            a: t,
            b: s
        }
    }

which decodes to:

key id:                    0-0Fp51UZykfaiCJrfTE3+oMI8zvDteYfPtR+2n1R+z8w=
player-dev.vrt.be key:     b5f500d55cb44715107249ccd8a5c0136cfb2788dbb71b90a4f142423bacaf38
player-stag.vrt.be key:    d23987504521ae6fbf2716caca6700a24bb1579477b43c84e146b279de5ca595
player.vrt.be key:         2a9251d782700769fb856da5725daf38661874ca6f80ae7dc2b05ec1a81a24ae

@bashonly bashonly added the needs-testing Patch needs testing label Jul 5, 2023
@bashonly
Copy link
Member

bashonly commented Jul 9, 2023

per #5671 (comment) this change fixes an http error 500 issue that started happening in the last couple weeks

@bashonly bashonly added pending-review PR needs a review and removed needs-testing Patch needs testing labels Jul 9, 2023
@bashonly bashonly removed the pending-review PR needs a review label Jul 9, 2023
@bashonly bashonly merged commit 325191d into yt-dlp:master Jul 10, 2023
13 checks passed
@Zprokkel Zprokkel deleted the patch-1 branch February 22, 2024 19:59
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants