Browse Source

[vimeo] Fix thumbs extraction (Closes #2480)

Sergey M. 11 years ago
parent
commit
ca7fa3dcb3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/vimeo.py

+ 1 - 1
youtube_dl/extractor/vimeo.py

@@ -220,7 +220,7 @@ class VimeoIE(SubtitlesInfoExtractor):
 
 
         # Extract video thumbnail
         # Extract video thumbnail
         video_thumbnail = config["video"].get("thumbnail")
         video_thumbnail = config["video"].get("thumbnail")
-        if video_thumbnail is None:
+        if video_thumbnail is None and config["video"].get("thumbs"):
             _, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in config["video"]["thumbs"].items())[-1]
             _, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in config["video"]["thumbs"].items())[-1]
 
 
         # Extract video description
         # Extract video description