1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-12 07:37:21 +08:00

[screencast] Fix extraction (closes )

This commit is contained in:
sichuan-pepper 2018-10-28 01:46:32 +09:00 committed by Ni Ndogo
parent df76d3eb13
commit cdf763e9ae

@ -90,6 +90,14 @@ class ScreencastIE(InfoExtractor):
r'src=(.*?)(?:$|&)', video_meta,
'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:
raise ExtractorError('Cannot find video')