From: Sergey M․ Date: Tue, 25 Apr 2017 16:46:05 +0000 (+0700) Subject: [extractor/common] Improve jwplayer regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ac9c69ace7ee22e59a44d25c87b9b53d18762ff7;p=youtube-dl [extractor/common] Improve jwplayer regex --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 9184e53e9..8b3f04c61 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2233,7 +2233,7 @@ class InfoExtractor(object): def _find_jwplayer_data(self, webpage, video_id=None, transform_source=js_to_json): mobj = re.search( - r'(?s)jwplayer\((?P[\'"])[^\'" ]+(?P=quote)\).*?\.setup\s*\((?P[^)]+)\)', + r'(?s)jwplayer\((?P[\'"])[^\'" ]+(?P=quote)\)(?!).*?\.setup\s*\((?P[^)]+)\)', webpage) if mobj: try: