]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[bbccouk] Fix description (closes #6006)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 18 Jun 2015 14:00:13 +0000 (22:00 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 18 Jun 2015 14:00:13 +0000 (22:00 +0800)
youtube_dl/extractor/bbccouk.py

index 4b25b8c384dcc3845a6137b61076a61935866792..0305f88b53b4e3790cd6ff66ee6134741357fff5 100644 (file)
@@ -129,6 +129,20 @@ class BBCCoUkIE(InfoExtractor):
                 'skip_download': True,
             },
             'skip': 'geolocation',
+        }, {
+            'url': 'http://www.bbc.co.uk/iplayer/episode/b05zmgwn/royal-academy-summer-exhibition',
+            'info_dict': {
+                'id': 'b05zmgw1',
+                'ext': 'flv',
+                'description': 'Kirsty Wark and Morgan Quaintance visit the Royal Academy as it prepares for its annual artistic extravaganza, meeting people who have come together to make the show unique.',
+                'title': 'Royal Academy Summer Exhibition',
+                'duration': 3540,
+            },
+            'params': {
+                # rtmp download
+                'skip_download': True,
+            },
+            'skip': 'geolocation',
         }, {
             'url': 'http://www.bbc.co.uk/iplayer/playlist/p01dvks4',
             'only_matching': True,
@@ -362,7 +376,7 @@ class BBCCoUkIE(InfoExtractor):
             formats, subtitles = self._download_media_selector(programme_id)
             title = self._og_search_title(webpage)
             description = self._search_regex(
-                r'<p class="medium-description">([^<]+)</p>',
+                r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
                 webpage, 'description', fatal=False)
         else:
             programme_id, title, description, duration, formats, subtitles = self._download_playlist(group_id)