Browse Source

[bbc] Add another description regex

Sergey M․ 9 years ago
parent
commit
a853427427
1 changed files with 2 additions and 1 deletions
  1. 2 1
      youtube_dl/extractor/bbc.py

+ 2 - 1
youtube_dl/extractor/bbc.py

@@ -485,7 +485,8 @@ class BBCCoUkIE(InfoExtractor):
                 (r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>',
                 (r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>',
                  r'<div[^>]+class="info"[^>]*>\s*<h1>(.+?)</h1>'), webpage, 'title')
                  r'<div[^>]+class="info"[^>]*>\s*<h1>(.+?)</h1>'), webpage, 'title')
             description = self._search_regex(
             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)
                 webpage, 'description', default=None)
             if not description:
             if not description:
                 description = self._html_search_meta('description', webpage)
                 description = self._html_search_meta('description', webpage)