youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit ac9c69ace7ee22e59a44d25c87b9b53d18762ff7
parent 85f6de25e46562f57be4447e9109be964e6515ea
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue, 25 Apr 2017 23:46:05 +0700

[extractor/common] Improve jwplayer regex

Diffstat:
Myoutube_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 @@ -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: