projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fafb32
)
[screencast] Improve extraction (closes #14617, closes #17990)
author
Sergey M․
<dstftw@gmail.com>
Sun, 28 Oct 2018 16:23:32 +0000
(23:23 +0700)
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 c6554c905d03318ff4b3507bc9ba5c6020bcd891..69a0d01f39c24f9fdcef0d31dd4d9d7a2f082c85 100644
(file)
--- a/
youtube_dl/extractor/screencast.py
+++ b/
youtube_dl/extractor/screencast.py
@@
-92,7
+92,8
@@
class ScreencastIE(InfoExtractor):
if video_url is None:
video_url = self._html_search_regex(
- r'"MediaContentUrl":"([^"]+)"', webpage, 'media content url', default=None)
+ r'MediaContentUrl["\']\s*:(["\'])(?P<url>(?:(?!\1).)+)\1',
+ webpage, 'video url', default=None, group='url')
if video_url is None:
video_url = self._html_search_meta(