]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Accept my_playlists syntax for playlists
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Wed, 12 Aug 2009 21:15:22 +0000 (23:15 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:48 +0000 (11:24 +0100)
youtube-dl

index e3dafad690587997360da9c14893106c4605fba9..50b9197f2f9ba8d1db53226ccc5830e937f62fcc 100755 (executable)
@@ -966,7 +966,7 @@ class YoutubeSearchIE(InfoExtractor):
 class YoutubePlaylistIE(InfoExtractor):
        """Information Extractor for YouTube playlists."""
 
-       _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/view_play_list\?p=(.+)'
+       _VALID_URL = r'(?:http://)?(?:\w+\.)?youtube.com/(?:view_play_list|my_playlists)\?.*?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'/view_play_list?p=%s&page=%s'