Fixed YouTube playlist parsing
authorcryzed <cryzed@googlemail.com>
Thu, 27 Sep 2012 17:48:29 +0000 (19:48 +0200)
committercryzed <cryzed@googlemail.com>
Thu, 27 Sep 2012 17:48:29 +0000 (19:48 +0200)
youtube_dl/InfoExtractors.py

index ff5c47726db5c1f4d1bfb3492c747b2bb2481382..6442888d88eb3d097d92ee792b1fcbb7b343a230 100644 (file)
@@ -1473,7 +1473,7 @@ class YoutubePlaylistIE(InfoExtractor):
 
        _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_TEMPLATE = r'/watch\?v=(.+?)&amp;list=(PL)?%s&'
+       _VIDEO_INDICATOR_TEMPLATE = r'/watch\?v=(.+?)&amp;list=.*?%s'
        _MORE_PAGES_INDICATOR = r'yt-uix-pager-next'
        IE_NAME = u'youtube:playlist'