1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 03:47:15 +08:00

Update la7.py

This commit is contained in:
Sergey M 2018-02-07 21:47:30 +07:00 committed by GitHub
parent a3362ba736
commit 365fb9c0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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