-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Youvi] Add new extractor #27784
base: master
Are you sure you want to change the base?
[Youvi] Add new extractor #27784
Conversation
if external_embed == 'youtube': | ||
return self.url_result(external_id, 'Youtube') | ||
|
||
elif external_embed == 'vimeo': | ||
return self.url_result( | ||
'https://vimeo.com/' + external_id, 'Vimeo') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extractor should not return None
.
|
||
formats = [] | ||
for url_type in ('url', 'hls'): | ||
url = self._search_regex( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not shadow outer names.
r'source_file:[^}]+(?:%s):"(?P<url>[^"]+?)"' % url_type, | ||
webpage, 'youvi-hosted-url', fatal=False) | ||
if url: | ||
url = url.replace(r'\u002F', r'/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if there are more escape codes?
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])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:
What is the purpose of your pull request?
Description of your pull request and other information
closes #27014
Downloads youvi videos, bypasses NSFW registration, delegates to youtube/vimeo when needed