瀏覽代碼

[24video] Fix description extraction

Sergey M․ 9 年之前
父節點
當前提交
f6e588afc0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/twentyfourvideo.py

+ 2 - 1
youtube_dl/extractor/twentyfourvideo.py

@@ -47,7 +47,8 @@ class TwentyFourVideoIE(InfoExtractor):
 
         title = self._og_search_title(webpage)
         description = self._html_search_regex(
-            r'<span itemprop="description">([^<]+)</span>', webpage, 'description', fatal=False)
+            r'<(p|span)[^>]+itemprop="description"[^>]*>(?P<description>[^<]+)</\1>',
+            webpage, 'description', fatal=False, group='description')
         thumbnail = self._og_search_thumbnail(webpage)
         duration = int_or_none(self._og_search_property(
             'duration', webpage, 'duration', fatal=False))