1
0
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:
Urgau 2018-06-12 13:36:46 +02:00 committed by GitHub
parent 5d6c81b63f
commit ba976d6f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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