[vimeo] Ignore video 'base' thumbnail (Closes #3438)
authorDobrosław Żybort <matrixik@gmail.com>
Mon, 4 Aug 2014 19:37:36 +0000 (21:37 +0200)
committerDobrosław Żybort <matrixik@gmail.com>
Mon, 4 Aug 2014 19:37:36 +0000 (21:37 +0200)
youtube_dl/extractor/vimeo.py

index 10844f39e68180eba148a09f87b588df8c2b8a03..11c7d7e817f1f0839604311534dd918b5b5e4fee 100644 (file)
@@ -276,7 +276,7 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor):
         if video_thumbnail is None:
             video_thumbs = config["video"].get("thumbs")
             if video_thumbs and isinstance(video_thumbs, dict):
-                _, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in video_thumbs.items())[-1]
+                _, video_thumbnail = sorted((int(width if width.isdigit() else 0), t_url) for (width, t_url) in video_thumbs.items())[-1]
 
         # Extract video description
         video_description = None