From: Sergey M․ Date: Mon, 28 Dec 2020 19:29:34 +0000 (+0700) Subject: [youtube] Improve yt initial data extraction (closes #27524) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1a95953867412bc7a785f21f6bff5145b2b13fd0;p=youtube-dl [youtube] Improve yt initial data extraction (closes #27524) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 0044ed909..87bdc1677 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -280,6 +280,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): _YT_INITIAL_DATA_RE = r'(?:window\s*\[\s*["\']ytInitialData["\']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;' _YT_INITIAL_PLAYER_RESPONSE_RE = r'ytInitialPlayerResponse\s*=\s*({.+?})\s*;' + _YT_INITIAL_BOUNDARY_RE = r'(?:var\s+meta|