projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8064d4
)
[la7] Fix extraction (closes #15501)
author
Vrihub
<Vrihub@users.noreply.github.com>
Wed, 7 Feb 2018 14:48:16 +0000
(15:48 +0100)
committer
Sergey M
<dstftw@gmail.com>
Wed, 7 Feb 2018 14:48:16 +0000
(21:48 +0700)
youtube_dl/extractor/la7.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/la7.py
b/youtube_dl/extractor/la7.py
index da5a5de4ad7e65b995a257303096b4bc58061b67..6373268c400744f9b51a3d65a41a20d1eb27e034 100644
(file)
--- 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 {