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
[Picarto] Add new extractor for recorded Picarto VODs #15276
Conversation
youtube_dl/extractor/picarto.py
Outdated
return { | ||
'id': video_id, | ||
'title': title, | ||
'description': "", |
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.
No.
youtube_dl/extractor/picarto.py
Outdated
'id': video_id, | ||
'title': title, | ||
'description': "", | ||
'uploader': "", |
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.
No.
youtube_dl/extractor/picarto.py
Outdated
vod_regex = "<script[^<]*>[^<]*riot.mount\(([^<]+)\)[^<]*<\/" | ||
vod_script = self._html_search_regex(vod_regex, webpage, "vod_script") | ||
vod_url = self._search_regex('vod: \\"([^\\"]*)\\"', vod_script, "vod_url") | ||
vod_thumb = self._search_regex('vodThumb: \\"([^\\"]*)\\"', vod_script, "vod_thumb") |
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.
_parse_json
.
youtube_dl/extractor/picarto.py
Outdated
video_id = self._match_id(url) | ||
webpage = self._download_webpage(url, video_id) | ||
|
||
vod_regex = "<script[^<]*>[^<]*riot.mount\(([^<]+)\)[^<]*<\/" |
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.
r prefix, single quotes.
Added a new extractor to download recorded streams from Picarto.