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

[ok.ru] add mobile fallback #1972

Merged
merged 2 commits into from
Dec 14, 2021
Merged

Conversation

Lesmiscore
Copy link
Contributor

@Lesmiscore Lesmiscore commented Dec 12, 2021

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

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 one of the following options:

  • 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?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Some videos in Odnoklassniki only available in mobile website.
This adds fallback for the extractor to extract from mobile webpage, in case of PC webpage says not found.

Test case attached.

(note: not related to issue 1971)

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.

lgtm

yt_dlp/extractor/odnoklassniki.py Outdated Show resolved Hide resolved
@pukkandan pukkandan added the site-enhancement Feature request for some website label Dec 12, 2021
@pukkandan pukkandan merged commit d984a98 into yt-dlp:master Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants