From ca211b5b8830a74fecae115ba18b62878348342c Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Fri, 10 Jan 2025 13:50:20 +0100 Subject: [PATCH] ytdl_hook.lua: fix start and end conditions Fixes #13358, fixes fcc67cc6c1. --- player/lua/ytdl_hook.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 9fb2d8e7cff08..fe9ea5e903933 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -831,7 +831,7 @@ local function add_single_video(json) end -- set start time - if json.start_time or json.section_start and + if (json.start_time or json.section_start) and not option_was_set("start") and not option_was_set_locally("start") then local start_time = json.start_time or json.section_start @@ -840,7 +840,7 @@ local function add_single_video(json) end -- set end time - if json.end_time or json.section_end and + if (json.end_time or json.section_end) and not option_was_set("end") and not option_was_set_locally("end") then local end_time = json.end_time or json.section_end