logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 9177ce4d8ce93a7de0c75bdfdfd36bca5d6086f9
parent ce5cafea407319ce9a69acabeb748563cc0d7db0
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Sat,  3 Apr 2010 09:45:45 +0200

Support new playlist style URL (fixes issue #114)

Diffstat:

Myoutube-dl2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube-dl b/youtube-dl @@ -1493,7 +1493,7 @@ class YoutubeSearchIE(InfoExtractor): class YoutubePlaylistIE(InfoExtractor): """Information Extractor for YouTube playlists.""" - _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:view_play_list|my_playlists)\?.*?p=([^&]+).*' + _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|my_playlists)\?.*?p=|user/.*?/user/)([^&]+).*' _TEMPLATE_URL = 'http://www.youtube.com/view_play_list?p=%s&page=%s&gl=US&hl=en' _VIDEO_INDICATOR = r'/watch\?v=(.+?)&' _MORE_PAGES_INDICATOR = r'(?m)>\s*Next\s*</a>'