From ee23f7a2367f1c4db48ccbd535bffc6df866b9c9 Mon Sep 17 00:00:00 2001 From: plexigras Date: Tue, 18 Oct 2016 07:20:50 +0200 Subject: [PATCH] fixed vidzi extractor --- youtube_dl/extractor/vidzi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/vidzi.py b/youtube_dl/extractor/vidzi.py index d49cc6cbc..9533bb4af 100644 --- a/youtube_dl/extractor/vidzi.py +++ b/youtube_dl/extractor/vidzi.py @@ -35,7 +35,8 @@ class VidziIE(JWPlatformBaseIE): title = self._html_search_regex( r'(?s)

(.*?)

', webpage, 'title') - code = decode_packed_codes(webpage).replace('\\\'', '\'') + code = decode_packed_codes(self._html_search_regex( + r'.*jwplayer\.js.*\n(.*)', webpage, 'code')).replace('\\\'', '\'') jwplayer_data = self._parse_json( self._search_regex(r'setup\(([^)]+)\)', code, 'jwplayer data'), video_id, transform_source=js_to_json)