mirror of
https://gitlab.com/dstftw/youtube-dl.git
synced 2020-11-16 09:42:26 +00:00
[vimeo] Improve thumbnail extraction
This commit is contained in:
parent
ca7fa3dcb3
commit
c0e5d85631
|
@ -220,8 +220,10 @@ 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 and config["video"].get("thumbs"):
|
if video_thumbnail is None:
|
||||||
_, video_thumbnail = sorted((int(width), t_url) for (width, t_url) in config["video"]["thumbs"].items())[-1]
|
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]
|
||||||
|
|
||||||
# Extract video description
|
# Extract video description
|
||||||
video_description = None
|
video_description = None
|
||||||
|
|
Loading…
Reference in a new issue