1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 14:52:58 +08:00

change '+?' to '*' in regex as per review

This commit is contained in:
Grzechooo 2017-01-22 18:38:38 +01:00
parent 7838764d7b
commit deb325f272

View File

@ -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'<div class="yt-alert-message"[^>]+?>([^<]+)</div>', page):
for match in re.findall(r'<div class="yt-alert-message"[^>]*>([^<]+)</div>', 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):