Skip to content

Commit

Permalink
[atvat] Fix extraction (closes #18041)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroBurner authored and dstftw committed Nov 16, 2018
1 parent 2599956 commit 0919cd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions youtube_dl/extractor/atvat.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def _real_extract(self, url):
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']
Expand Down

0 comments on commit 0919cd4

Please sign in to comment.