diff options
author | Lukáš Lalinský <lukas@oxygene.sk> | 2015-11-22 13:14:35 +0100 |
---|---|---|
committer | Lukáš Lalinský <lukas@oxygene.sk> | 2015-11-22 13:14:35 +0100 |
commit | 3cfd000849208b58dab4f78d1486d3f24552009e (patch) | |
tree | 1f05d69477d627dfabb03f10a843b4fefa91eff7 /youtube_dl | |
parent | 0c176d7bde6fedfb2572caf09cbeb07e14c2f5f7 (diff) |
[youtube] More explicit player config JSON extraction (fixes #7468)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |