aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/escapist.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-27 22:17:51 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-27 22:17:51 +0600
commit290a5a8d85e8f7514099fa305c8f0b26d1b35a78 (patch)
tree648739bb7399491a0ea8efd1195732f822768309 /youtube_dl/extractor/escapist.py
parente2dc351d25d1b05b26cba654a22b0d10ed47dec9 (diff)
[escapist] Fix imsVideo regex (#5090)
Diffstat (limited to 'youtube_dl/extractor/escapist.py')
-rw-r--r--youtube_dl/extractor/escapist.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/escapist.py b/youtube_dl/extractor/escapist.py
index a01a05b06..600ebf078 100644
--- 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']