projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c901cc3
)
[screencast] Fix extraction (closes #14590)
author
sichuan-pepper
<huajiao.sichuan.pepper@gmail.com>
Sat, 27 Oct 2018 16:46:32 +0000
(
01:46
+0900)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 28 Oct 2018 16:26:30 +0000
(23:26 +0700)
youtube_dl/extractor/screencast.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/screencast.py
b/youtube_dl/extractor/screencast.py
index 62a6a8337ccf5d247a38be29cf93b5b72f36dfd7..c6554c905d03318ff4b3507bc9ba5c6020bcd891 100644
(file)
--- a/
youtube_dl/extractor/screencast.py
+++ b/
youtube_dl/extractor/screencast.py
@@
-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')