diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-04-25 23:46:05 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-04-25 23:46:05 +0700 |
commit | ac9c69ace7ee22e59a44d25c87b9b53d18762ff7 (patch) | |
tree | 9020a2977424a0b9f40db6df6129425013483627 | |
parent | 85f6de25e46562f57be4447e9109be964e6515ea (diff) |
[extractor/common] Improve jwplayer regex
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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<quote>[\'"])[^\'" ]+(?P=quote)\).*?\.setup\s*\((?P<options>[^)]+)\)', + r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\)(?!</script>).*?\.setup\s*\((?P<options>[^)]+)\)', webpage) if mobj: try: |