]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Fix recognition of http://www.youtube.com/course?list=PL41FDABC6AA085E78&category...
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 4 Oct 2011 01:25:20 +0000 (03:25 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 4 Oct 2011 01:25:20 +0000 (03:25 +0200)
youtube-dl

index d3582c442b0d95dd6048aae7d88a9621868cc7b1..8560059f1c3553c95adbedf7643561880e77ce05 100755 (executable)
@@ -2458,7 +2458,7 @@ class YahooSearchIE(InfoExtractor):
 class YoutubePlaylistIE(InfoExtractor):
        """Information Extractor for YouTube playlists."""
 
-       _VALID_URL = r'(?:https?://)?(?:\w+\.)?youtube\.com/(?:(?:view_play_list|my_playlists|artist|playlist)\?.*?(p|a|list)=|user/.*?/user/|p/|user/.*?#[pg]/c/)(?:PL)?([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)?([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 = r'/watch\?v=(.+?)&'
        _MORE_PAGES_INDICATOR = r'(?m)>\s*Next\s*</a>'