From e399853d0c5784257ffcb6fba147d0b47d3f9bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Mon, 12 May 2014 07:59:33 +0200 Subject: [PATCH] [youtube:playlist] Improve detection of private lists (#2840) --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 67845349e..1f3aa4322 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1437,7 +1437,7 @@ class YoutubePlaylistIE(YoutubeBaseInfoExtractor): more_widget_html = content_html = page # Check if the playlist exists or is private - if re.search(r'
[^<]*?The playlist does not exist[^<]*?
', page) is not None: + if re.search(r'
[^<]*?(The|This) playlist (does not exist|is private)[^<]*?
', page) is not None: raise ExtractorError( u'The playlist doesn\'t exist or is private, use --username or ' '--netrc to access it.',