浏览代码

[sportbox:embed] Relax thumbnail

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

+ 1 - 1
youtube_dl/extractor/sportbox.py

@@ -113,7 +113,7 @@ class SportBoxEmbedIE(InfoExtractor):
 
         thumbnail = self._search_regex(
             r'sportboxPlayer\.jwplayer_common_params\.image\s*=\s*"([^"]+)"',
-            webpage, 'thumbnail', fatal=False)
+            webpage, 'thumbnail', default=None)
 
         return {
             'id': video_id,