Skip to content

Commit

Permalink
ytdl_hook.lua: fix start and end conditions
Browse files Browse the repository at this point in the history
Fixes #13358, fixes fcc67cc.
  • Loading branch information
guidocella authored and kasper93 committed Jan 10, 2025
1 parent f049a1e commit ca211b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/lua/ytdl_hook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ca211b5

Please sign in to comment.