[vimeo] Fix thumbs extraction (Closes #2480)
authorSergey M. <dstftw@gmail.com>
Fri, 28 Feb 2014 10:43:54 +0000 (17:43 +0700)
committerSergey M. <dstftw@gmail.com>
Fri, 28 Feb 2014 10:43:54 +0000 (17:43 +0700)
youtube_dl/extractor/vimeo.py

index c5ee84807db0b6c66b773c3a6a7be09c4f2eab70..ec6aad592054a9bcec0000877cb739c232a00eb9 100644 (file)
@@ -220,7 +220,7 @@ class VimeoIE(SubtitlesInfoExtractor):
 
         # Extract video 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]
 
         # Extract video description