[screencast] Fix extraction (closes #14590)

pull/18009/head
sichuan-pepper 2018-10-28 01:46:32 +09:00 zatwierdzone przez Sergey M․
rodzic c901cc38e5
commit 1fafb32984
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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')