diff options
-rw-r--r-- | player/lua/ytdl_hook.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index d706568fe9..3161da6194 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -768,7 +768,7 @@ local function add_single_video(json) msg.verbose("adding thumbnail") mp.commandv("video-add", thumb_info.url, "auto") thumb_height = 0 - elseif (thumb_preference ~= nil and thumb_info.preference > thumb_preference) or + elseif (thumb_preference ~= nil and (thumb_info.preference or -math.huge) > thumb_preference) or (thumb_preference == nil and ((thumb_info.height or 0) > thumb_height)) then thumb = thumb_info.url thumb_height = thumb_info.height or 0 |