]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
YouTube playlist fix; closes #365 and #331
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Sat, 30 Jun 2012 13:04:30 +0000 (15:04 +0200)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Sat, 30 Jun 2012 13:04:30 +0000 (15:04 +0200)
youtube-dl
youtube-dl.exe
youtube_dl/InfoExtractors.py

index 66e5ff53701f8b9f324d558e52d34ea06b6e6fbd..d89b5a9841b2ba633eebb0c6d3d9dfe381db2c4f 100755 (executable)
Binary files a/youtube-dl and b/youtube-dl differ
index 984c92c42194f2384926427fa6112f30222ac1e2..c55f5fa8d30a9386b9f2add1d11aaa9c470704ab 100755 (executable)
Binary files a/youtube-dl.exe and b/youtube-dl.exe differ
index 0b5d76bdbd89f393340afdec9e0a79b86df615c8..baf859ea8beac248c7cc9caf0a525a71ae4368fb 100644 (file)
@@ -1232,7 +1232,7 @@ class YoutubeSearchIE(InfoExtractor):
                InfoExtractor.__init__(self, downloader)
 
        def report_download_page(self, query, pagenum):
-               """Report attempt to download playlist page with given number."""
+               """Report attempt to download search page with given number."""
                query = query.decode(preferredencoding())
                self._downloader.to_screen(u'[youtube] query "%s": Downloading page %s' % (query, pagenum))
 
@@ -1468,8 +1468,8 @@ 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&'
-       _MORE_PAGES_INDICATOR = r'(?m)>\s*Next\s*</a>'
+       _VIDEO_INDICATOR_TEMPLATE = r'/watch\?v=(.+?)&amp;list=(PL)?%s&'
+       _MORE_PAGES_INDICATOR = r'yt-uix-pager-next'
        IE_NAME = u'youtube:playlist'
 
        def __init__(self, downloader=None):