-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[ruv] Add new extractor #13396
[ruv] Add new extractor #13396
Conversation
youtube_dl/extractor/ruv.py
Outdated
|
||
title = self._og_search_title(webpage) | ||
self.report_extraction(video_id) | ||
video_url = self._html_search_regex(r'video.src\s+=\s+["\'](.+?)["\']', webpage, u'video URL') |
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.
Dots should be escaped. Regex should be relaxed. No u''
.
youtube_dl/extractor/ruv.py
Outdated
webpage = self._download_webpage(url, video_id) | ||
|
||
title = self._og_search_title(webpage) | ||
self.report_extraction(video_id) |
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.
Remove.
cde8821
to
2a40a89
Compare
Thanks for the comments. I believe I have addressed them all in the two commit above. I have no idea why some of the tests are failing though, but as far as I can tell it's due to some issue unrelated to my changes, is that correct? |
youtube_dl/extractor/ruv.py
Outdated
|
||
|
||
class RuvIE(InfoExtractor): | ||
_VALID_URL = r'http?://(?:www\.)?ruv\.is/sarpurinn/ruv/\w+/(?P<id>[0-9]+)' |
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.
http?
incorrect.
Squash commits. |
I addedthe missing s in "http?" (should be "https?") in url regex and rebased into one commit. |
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
Added new extractor for Icelandic national TV station Rúv's website ruv.is. In particular, ruv.is/sarpurinn which is where most shows are made available online.