浏览代码

[bbccouk] Mute thumbnail

Sergey M․ 10 年之前
父节点
当前提交
650cfd0cb0
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      youtube_dl/extractor/bbccouk.py

+ 1 - 3
youtube_dl/extractor/bbccouk.py

@@ -343,8 +343,6 @@ class BBCCoUkIE(InfoExtractor):
 
 
         webpage = self._download_webpage(url, group_id, 'Downloading video page')
         webpage = self._download_webpage(url, group_id, 'Downloading video page')
 
 
-        thumbnail = self._og_search_thumbnail(webpage)
-
         programme_id = None
         programme_id = None
 
 
         tviplayer = self._search_regex(
         tviplayer = self._search_regex(
@@ -375,7 +373,7 @@ class BBCCoUkIE(InfoExtractor):
             'id': programme_id,
             'id': programme_id,
             'title': title,
             'title': title,
             'description': description,
             'description': description,
-            'thumbnail': thumbnail,
+            'thumbnail': self._og_search_thumbnail(webpage, default=None),
             'duration': duration,
             'duration': duration,
             'formats': formats,
             'formats': formats,
             'subtitles': subtitles,
             'subtitles': subtitles,