mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 09:45:33 +08:00
Update vidzi.py
This commit is contained in:
parent
ba976d6f99
commit
ee98dc7ee9
@ -53,8 +53,9 @@ class VidziIE(InfoExtractor):
|
|||||||
jwplayer_data = self._parse_json(
|
jwplayer_data = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'setup\(([^)]+)\)', code, 'jwplayer data',
|
r'setup\(([^)]+)\)', code, 'jwplayer data',
|
||||||
default=NO_DEFAULT if num == len(codes) else '{}').replace('+ window[\'vastRef\']', ''),
|
default=NO_DEFAULT if num == len(codes) else '{}'),
|
||||||
video_id, transform_source=js_to_json)
|
video_id, transform_source=lambda s: js_to_json(
|
||||||
|
re.sub(r'\s*\+\s*window\[.+?\]', '', s)))
|
||||||
if jwplayer_data:
|
if jwplayer_data:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user