Browse Source

[la7] Fix extraction (closes #15501)

master
Vrihub 6 years ago
committed by Sergey M
parent
commit
96a0bbdd0d
1 changed files with 3 additions and 1 deletions
  1. 4
      youtube_dl/extractor/la7.py

4
youtube_dl/extractor/la7.py

@ -49,7 +49,9 @@ class LA7IE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
player_data = self._parse_json( player_data = self._parse_json(
self._search_regex(r'videoLa7\(({[^;]+})\);', webpage, 'player data'),
self._search_regex(
[r'(?s)videoParams\s*=\s*({.+?});', r'videoLa7\(({[^;]+})\);'],
webpage, 'player data'),
video_id, transform_source=js_to_json) video_id, transform_source=js_to_json)
return { return {

Loading…
Cancel
Save