[screencast] Fix extraction (closes #14590)

This commit is contained in:
sichuan-pepper 2018-10-28 01:46:32 +09:00 committed by Sergey M․
parent c901cc38e5
commit 1fafb32984
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -90,6 +90,14 @@ def _real_extract(self, url):
r'src=(.*?)(?:$|&)', video_meta, r'src=(.*?)(?:$|&)', video_meta,
'meta tag video URL', default=None) 'meta tag video URL', default=None)
if video_url is None:
video_url = self._html_search_regex(
r'"MediaContentUrl":"([^"]+)"', webpage, 'media content url', default=None)
if video_url is None:
video_url = self._html_search_meta(
'og:video', webpage, default=None)
if video_url is None: if video_url is None:
raise ExtractorError('Cannot find video') raise ExtractorError('Cannot find video')