mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-28 10:46:50 +01:00
[youtube:playlist] Improve detection of private lists (#2840)
This commit is contained in:
parent
fbe8053120
commit
e399853d0c
@ -1437,7 +1437,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor):
|
|||||||
more_widget_html = content_html = page
|
more_widget_html = content_html = page
|
||||||
|
|
||||||
# Check if the playlist exists or is private
|
# Check if the playlist exists or is private
|
||||||
if re.search(r'<div class="yt-alert-message">[^<]*?The playlist does not exist[^<]*?</div>', page) is not None:
|
if re.search(r'<div class="yt-alert-message">[^<]*?(The|This) playlist (does not exist|is private)[^<]*?</div>', page) is not None:
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
u'The playlist doesn\'t exist or is private, use --username or '
|
u'The playlist doesn\'t exist or is private, use --username or '
|
||||||
'--netrc to access it.',
|
'--netrc to access it.',
|
||||||
|
Loading…
Reference in New Issue
Block a user