diff --git a/haruhi_dl/extractor/youtube.py b/haruhi_dl/extractor/youtube.py index 6adeb2555..9fa590754 100644 --- a/haruhi_dl/extractor/youtube.py +++ b/haruhi_dl/extractor/youtube.py @@ -2241,8 +2241,9 @@ class YoutubeBaseListInfoExtractor(YoutubeBaseInfoExtractor): webpage = self._download_webpage(url, list_id, note='Downloading %s page #1 (webpage)' % (self._LIST_NAME)) return self._parse_json( - self._search_regex( - r'(?:window(?:\["|\.)|var )ytInitialData(?:"])?\s*=\s*({.+});', + self._search_regex(( + r'(?:window(?:\["|\.)|var )ytInitialData(?:"])?\s*=\s*({.+});', + r'(?:window(?:\["|\.)|var )ytInitialData(?:"])?\s*=\s*({.+});'), webpage, 'initial data JSON'), 'initial data JSON'), webpage def _real_extract(self, url, results=None, query=None):