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

[openload] improvement embedding #11999

Closed
wants to merge 1 commit into from

Conversation

BagiraHun
Copy link
Contributor

@BagiraHun BagiraHun commented Feb 6, 2017

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl 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

There are several webpages that try to hide reffered webpage from openload site. For example
https://nullrefer.com/?http://openload.com/... or https://href.li/?http://openload.co/...
This update help to extract openload link from this type of linking

support for embedded link with referrer
webpage)
return [url for _, url in re.findall(
r'<iframe[^>]+src=(["\'])(?:[^\?]+\?|[^=]+=|)(?P<url>(?:https?://|//|)(?:openload\.(?:co|io)|oload\.tv)/(?:f|embed)/[^"\']+)\1',
webpage)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add tests for such embeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants