]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Support raw playlist parameters (Closes #482)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 22 Oct 2012 11:01:36 +0000 (13:01 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 22 Oct 2012 11:01:36 +0000 (13:01 +0200)
youtube_dl/InfoExtractors.py

index c35b68b8fc7dabea2733ce56a5a5f58f98e835ca..6bf80900f357b762fba3b48ce7db2b8c5f7d2696 100644 (file)
@@ -1509,7 +1509,7 @@ class YahooSearchIE(InfoExtractor):
 class YoutubePlaylistIE(InfoExtractor):
        """Information Extractor for YouTube playlists."""
 
-       _VALID_URL = r'(?:https?://)?(?:\w+\.)?youtube\.com/(?:(?:course|view_play_list|my_playlists|artist|playlist)\?.*?(p|a|list)=|user/.*?/user/|p/|user/.*?#[pg]/c/)(?:PL|EC)?([0-9A-Za-z-_]+)(?:/.*?/([0-9A-Za-z_-]+))?.*'
+       _VALID_URL = r'(?:(?:https?://)?(?:\w+\.)?youtube\.com/(?:(?:course|view_play_list|my_playlists|artist|playlist)\?.*?(p|a|list)=|user/.*?/user/|p/|user/.*?#[pg]/c/)(?:PL|EC)?|PL|EC)([0-9A-Za-z-_]+)(?:/.*?/([0-9A-Za-z_-]+))?.*'
        _TEMPLATE_URL = 'http://www.youtube.com/%s?%s=%s&page=%s&gl=US&hl=en'
        _VIDEO_INDICATOR_TEMPLATE = r'/watch\?v=(.+?)&amp;([^&"]+&amp;)*list=.*?%s'
        _MORE_PAGES_INDICATOR = r'yt-uix-pager-next'