Browse Source

[escapist] Fix imsVideo regex (#5090)

totalwebcasting
Sergey M․ 10 years ago
parent
commit
290a5a8d85
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/escapist.py

+ 4
- 1
youtube_dl/extractor/escapist.py View File

@ -65,7 +65,10 @@ class EscapistIE(InfoExtractor):
video_id = self._match_id(url) video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id) 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'] video_id = imsVideo['videoID']
key = imsVideo['hash'] key = imsVideo['hash']


Loading…
Cancel
Save