diff options
author | NeroBurner <pyro4hell@gmail.com> | 2018-11-16 18:18:50 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-11-17 00:18:50 +0700 |
commit | 0919cd4d011d0545a6afadfab0b71de8c0a4fe02 (patch) | |
tree | 3a7cbcae5274dff0ae79c6c15d7247f8023460f3 /youtube_dl | |
parent | 2599956c9ff0162e7afbddebb00d73eea6b0403c (diff) |
[atvat] Fix extraction (closes #18041)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/atvat.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/atvat.py b/youtube_dl/extractor/atvat.py index 1584d53fc..95e572d70 100644 --- a/youtube_dl/extractor/atvat.py +++ b/youtube_dl/extractor/atvat.py @@ -28,8 +28,10 @@ class ATVAtIE(InfoExtractor): display_id = self._match_id(url) webpage = self._download_webpage(url, display_id) video_data = self._parse_json(unescapeHTML(self._search_regex( - r'class="[^"]*jsb_video/FlashPlayer[^"]*"[^>]+data-jsb="([^"]+)"', - webpage, 'player data')), display_id)['config']['initial_video'] + [r'flashPlayerOptions\s*=\s*(["\'])(?P<json>(?:(?!\1).)+)\1', + r'class="[^"]*jsb_video/FlashPlayer[^"]*"[^>]+data-jsb="(?P<json>[^"]+)"'], + webpage, 'player data', group='json')), + display_id)['config']['initial_video'] video_id = video_data['id'] video_title = video_data['title'] |