Add support for embedded YouTube playist URLs (closes #54)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Wed, 12 Jan 2011 19:22:37 +0000 (20:22 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Wed, 12 Jan 2011 19:22:37 +0000 (20:22 +0100)
youtube-dl

index c49c1b06448304f68d37395c7f6b23041d15b14f..32e334ce4c9a6c53265baeefcd8201c22e4a6d28 100755 (executable)
@@ -2044,7 +2044,7 @@ class YahooSearchIE(InfoExtractor):
 class YoutubePlaylistIE(InfoExtractor):
        """Information Extractor for YouTube playlists."""
 
-       _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|my_playlists)\?.*?p=|user/.*?/user/)([^&]+).*'
+       _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:(?:view_play_list|my_playlists)\?.*?p=|user/.*?/user/|p/)([^&]+).*'
        _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>'