From a56edcd2a8000740a9cbc9a0581b91ddd23856bd Mon Sep 17 00:00:00 2001 From: gfabiano Date: Tue, 20 Jun 2017 16:27:04 +0200 Subject: [PATCH] [extractor/common] Improve find jwplayer data --- youtube_dl/extractor/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 9751ab021..ae0f9123b 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -2250,6 +2250,8 @@ 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[^)]+)\)', + webpage) or re.search( + r'(?is)]+data-jwplayer=([\'"])(?P.*?)\1\s*>', webpage) if mobj: try: