Support new playlist style URL (fixes issue #114)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sat, 3 Apr 2010 07:45:45 +0000 (09:45 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:26:52 +0000 (11:26 +0100)
youtube-dl

index 3735c7eac7798aa2926eecf15d49f0b9f665404b..09f1441a4a83235836a7807059af69074606d277 100755 (executable)
@@ -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>'