A feature-rich command-line audio/video downloader
[extractor/common] Improve jwplayer regex
Sergey M․ac9c69ace7ee
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.pyindex 9184e53e94..8b3f04c61a 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<quote>[\'"])[^\'" ]+(?P=quote)\).*?\.setup\s*\((?P<options>[^)]+)\)',+ r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\)(?!</script>).*?\.setup\s*\((?P<options>[^)]+)\)',webpage)if mobj:try: