From 42f1601faf8ceaa8840e516fc2f4cadd3681d17d Mon Sep 17 00:00:00 2001 From: Cristhian Ruiz Date: Fri, 17 May 2019 16:21:26 -0600 Subject: [PATCH] Improve JWPlayer regex --- youtube_dl/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index f994953bc..b7c710fcb 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2624,7 +2624,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: