diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 75aa2207e..6f7b566f8 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1956,7 +1956,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor): page = self._download_webpage(url, playlist_id) # the yt-alert-message now has tabindex attribute (see https://github.com/rg3/youtube-dl/issues/11604) - for match in re.findall(r'
', page): + for match in re.findall(r' ', page): match = match.strip() # Check if the playlist exists or is private if re.match(r'[^<]*(The|This) playlist (does not exist|is private)[^<]*', match):