projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2dc351
)
[escapist] Fix imsVideo regex (#5090)
author
Sergey M․
<dstftw@gmail.com>
Mon, 27 Apr 2015 16:17:51 +0000
(22:17 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 27 Apr 2015 16:17:51 +0000
(22:17 +0600)
youtube_dl/extractor/escapist.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/escapist.py
b/youtube_dl/extractor/escapist.py
index a01a05b0644ea455b38efd5fcbafb1acea495511..600ebf078a51d23466f3b6389eb23ca1601812e7 100644
(file)
--- a/
youtube_dl/extractor/escapist.py
+++ b/
youtube_dl/extractor/escapist.py
@@
-65,7
+65,10
@@
class EscapistIE(InfoExtractor):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
- imsVideo = json.loads(self._search_regex(r'imsVideo\.play\(([^\)]+)\);', webpage, 'imsVideo'))
+ imsVideo = self._parse_json(
+ self._search_regex(
+ r'imsVideo\.play\(({.+?})\);', webpage, 'imsVideo'),
+ video_id)
video_id = imsVideo['videoID']
key = imsVideo['hash']