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

[ie/yandexvideo] Fix extractor #9813

Merged
merged 3 commits into from May 8, 2024
Merged

Conversation

src-tinkerer
Copy link
Contributor

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

The site has changed their JSON format, causing the failure of stream urls extraction. Basically this patch extracts stream urls from the new JSON format

Fixes #9803

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?

@seproDev seproDev added the site-bug Issue with a specific website label Apr 28, 2024
Copy link
Member

@pukkandan pukkandan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls update relevant tests. or add new ones if there is none

yt_dlp/extractor/yandexvideo.py Outdated Show resolved Hide resolved
@src-tinkerer
Copy link
Contributor Author

src-tinkerer commented May 1, 2024

Pls update relevant tests. or add new ones if there is none

It was more of the case that previous tests were not working than supporting something new/different but alright, will make a new test.

@pukkandan
Copy link
Member

pukkandan commented May 1, 2024

No need. But are the existing tests passing now?

@src-tinkerer
Copy link
Contributor Author

No need. But are the existing tests passing now?

Yes:

(venv) [linux@linux yt-dlp]$ python3 devscripts/run_tests.py ZenYandex_all
Running ['pytest', '-Werror', '--tb=short', 'test/test_download.py::TestDownload::test_ZenYandex_all']
=========================================================================================================== test session starts ============================================================================================================
platform linux -- Python 3.11.8, pytest-8.2.0, pluggy-1.5.0 -- /home/linux/git/yt-dlp/venv/bin/python
cachedir: .pytest_cache
rootdir: /home/linux/git/yt-dlp
configfile: setup.cfg
collected 1 item                                                                                                                                                                                                                           

test/test_download.py::TestDownload::test_ZenYandex_all PASSED                                                                                                                                                                       [100%]

============================================================================================================ 1 passed in 35.88s ============================================================================================================

@bashonly bashonly merged commit c4b87dd into yt-dlp:master May 8, 2024
6 checks passed
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.

[yandexvideo] Failed video download on dzen.ru
4 participants