From: Lukáš Lalinský Date: Sun, 22 Nov 2015 12:14:35 +0000 (+0100) Subject: [youtube] More explicit player config JSON extraction (fixes #7468) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=3cfd000849208b58dab4f78d1486d3f24552009e;p=youtube-dl.git [youtube] More explicit player config JSON extraction (fixes #7468) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 687e0b4db..21731188a 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1074,7 +1074,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): age_gate = False video_info = None # Try looking directly into the video webpage - mobj = re.search(r';ytplayer\.config\s*=\s*({.*?});', video_webpage) + mobj = re.search(r';ytplayer\.config\s*=\s*({.*?});ytplayer', video_webpage) if mobj: json_code = uppercase_escape(mobj.group(1)) ytplayer_config = json.loads(json_code)