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

[Picarto] Add new extractor for recorded Picarto VODs #15276

Closed
wants to merge 2 commits into from
Closed

[Picarto] Add new extractor for recorded Picarto VODs #15276

wants to merge 2 commits into from

Conversation

caiwan
Copy link

@caiwan caiwan commented Jan 16, 2018

Added a new extractor to download recorded streams from Picarto.

return {
'id': video_id,
'title': title,
'description': "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

No.

'id': video_id,
'title': title,
'description': "",
'uploader': "",
Copy link
Collaborator

Choose a reason for hiding this comment

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

No.

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")
Copy link
Collaborator

Choose a reason for hiding this comment

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

_parse_json.

video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)

vod_regex = "<script[^<]*>[^<]*riot.mount\(([^<]+)\)[^<]*<\/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

r prefix, single quotes.

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.

None yet

2 participants