[escapist] Fix imsVideo regex (#5090)

pull/8/head
Sergey M․ 2015-04-27 22:17:51 +06:00
rodzic e2dc351d25
commit 290a5a8d85
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

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