From: Mohammed Yaseen Mowzer Date: Thu, 14 Jun 2018 15:12:33 +0000 (+0200) Subject: [generic] Skip unsuccessful jwplayer extraction (closes #16735) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=3d08f63dc57f000384703f26b7dcb4b683e18c05;p=youtube-dl [generic] Skip unsuccessful jwplayer extraction (closes #16735) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 229dfda1b..1db154c4f 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -3150,9 +3150,13 @@ class GenericIE(InfoExtractor): jwplayer_data = self._find_jwplayer_data( webpage, video_id, transform_source=js_to_json) if jwplayer_data: - info = self._parse_jwplayer_data( - jwplayer_data, video_id, require_title=False, base_url=url) - return merge_dicts(info, info_dict) + try: + info = self._parse_jwplayer_data( + jwplayer_data, video_id, require_title=False, base_url=url) + return merge_dicts(info, info_dict) + except ExtractorError: + # See https://github.com/rg3/youtube-dl/pull/16735 + pass # Video.js embed mobj = re.search(