aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVrihub <Vrihub@users.noreply.github.com>2018-02-07 15:48:16 +0100
committerSergey M <dstftw@gmail.com>2018-02-07 21:48:16 +0700
commit96a0bbdd0d3f87313b0d517fca94e60ed2944dd9 (patch)
tree21c9cddcb9c4d3a884086588fd31f40f749d7aeb
parentc8064d4fab988d42cb400bbe26965f3078522da4 (diff)
downloadyoutube-dl-96a0bbdd0d3f87313b0d517fca94e60ed2944dd9.tar.xz
[la7] Fix extraction (closes #15501)
-rw-r--r--youtube_dl/extractor/la7.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/la7.py b/youtube_dl/extractor/la7.py
index da5a5de4a..6373268c4 100644
--- a/youtube_dl/extractor/la7.py
+++ b/youtube_dl/extractor/la7.py
@@ -49,7 +49,9 @@ class LA7IE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
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)
return {