]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] fix show extraction (fixes #4841)
authorremitamine <remitamine@gmail.com>
Mon, 7 Sep 2015 06:47:55 +0000 (07:47 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 7 Sep 2015 10:53:52 +0000 (12:53 +0200)
Closes #6782)

youtube_dl/extractor/youtube.py

index 231c86c37aa7a7bce1f554b74d603204b5df4aa1..6d7b90016e9abbddd0397c1f99f993b69276d876 100644 (file)
@@ -1836,7 +1836,7 @@ class YoutubeShowIE(InfoExtractor):
     IE_NAME = 'youtube:show'
     _TESTS = [{
         'url': 'http://www.youtube.com/show/airdisasters',
-        'playlist_mincount': 3,
+        'playlist_mincount': 5,
         'info_dict': {
             'id': 'airdisasters',
             'title': 'Air Disasters',
@@ -1847,7 +1847,7 @@ class YoutubeShowIE(InfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         playlist_id = mobj.group('id')
         webpage = self._download_webpage(
-            url, playlist_id, 'Downloading show webpage')
+            'http://www.youtube.com/show/%s/playlists' % playlist_id, playlist_id, 'Downloading show webpage')
         # There's one playlist for each season of the show
         m_seasons = list(re.finditer(r'href="(/playlist\?list=.*?)"', webpage))
         self.to_screen('%s: Found %s seasons' % (playlist_id, len(m_seasons)))