mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 07:25:08 +08:00
[vidzi.tv] Fix #16678
Yeah, I know it's a bad fix but there's no choice because we can't execute the js and it wouldn't make any sense because we don't need it.
This commit is contained in:
parent
5d6c81b63f
commit
ba976d6f99
@ -53,7 +53,7 @@ class VidziIE(InfoExtractor):
|
||||
jwplayer_data = self._parse_json(
|
||||
self._search_regex(
|
||||
r'setup\(([^)]+)\)', code, 'jwplayer data',
|
||||
default=NO_DEFAULT if num == len(codes) else '{}'),
|
||||
default=NO_DEFAULT if num == len(codes) else '{}').replace('+ window[\'vastRef\']', ''),
|
||||
video_id, transform_source=js_to_json)
|
||||
if jwplayer_data:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user