-
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
[rtvs] Add new extractor #15187
[rtvs] Add new extractor #15187
Conversation
youtube_dl/extractor/rtvs.py
Outdated
from .common import InfoExtractor | ||
|
||
|
||
class RtvsExtractorIE(InfoExtractor): |
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 Extractor
.
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.
Fixed.
youtube_dl/extractor/rtvs.py
Outdated
webpage = self._download_webpage(url, video_id) | ||
|
||
playlist_url = self._search_regex(r'"playlist": "(https?:.*)&', webpage, 'playlist_url') | ||
self.to_screen("%s: Playlist URL: %s" % (video_id, playlist_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.
Remove.
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.
Fixed.
video_id = self._match_id(url) | ||
webpage = self._download_webpage(url, video_id) | ||
|
||
playlist_url = self._search_regex(r'"playlist": "(https?:.*)&', webpage, 'playlist_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.
Should capture behind quotes. Non greedy.
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.
Can you elaborate or post the changed regex, please?
For example the line is:
"playlist": "http://www.rtvs.sk/json/archive5.json?id=63118&ad=1&" + ruurl + playlistLow,
I need to capture up until the last ampersand (excluding)
youtube_dl/extractor/rtvs.py
Outdated
|
||
playlist_url = self._search_regex(r'"playlist": "(https?:.*)&', webpage, 'playlist_url') | ||
self.to_screen("%s: Playlist URL: %s" % (video_id, playlist_url)) | ||
playlist = self._download_json(playlist_url, video_id, "Downloading playlist") |
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.
Single quotes.
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.
Fixed.
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
Please merge extractor for Radio and Television Slovakia archive at http://www.rtvs.sk/televizia/archiv