mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 19:02:52 +08:00
change '+?' to '*' in regex as per review
This commit is contained in:
parent
7838764d7b
commit
deb325f272
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user