[bbc] Add another description regex
authorSergey M․ <dstftw@gmail.com>
Thu, 28 Jan 2016 17:23:13 +0000 (23:23 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 28 Jan 2016 17:23:13 +0000 (23:23 +0600)
youtube_dl/extractor/bbc.py

index 210ce568b7a5ccd2db00bd0510398cf890498c26..5be0ff476e015083542574cb61d46cb8ed95bad0 100644 (file)
@@ -485,7 +485,8 @@ class BBCCoUkIE(InfoExtractor):
                 (r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>',
                  r'<div[^>]+class="info"[^>]*>\s*<h1>(.+?)</h1>'), webpage, 'title')
             description = self._search_regex(
-                r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
+                (r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
+                 r'<div[^>]+class="info_+synopsis"[^>]*>([^<]+)</div>'),
                 webpage, 'description', default=None)
             if not description:
                 description = self._html_search_meta('description', webpage)