summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2025-01-10 13:50:20 +0100
committerKacper Michajłow <kasper93@gmail.com>2025-01-10 14:06:16 +0100
commitca211b5b8830a74fecae115ba18b62878348342c (patch)
tree1b551fe0c1c9f50a5fec3d0fc6a757a75e9eb77a /player
parentf049a1e91c840754159dc86eb5b19ea15d311a75 (diff)
downloadmpv-ca211b5b8830a74fecae115ba18b62878348342c.tar.bz2
mpv-ca211b5b8830a74fecae115ba18b62878348342c.tar.xz
ytdl_hook.lua: fix start and end conditions
Fixes #13358, fixes fcc67cc6c1.
Diffstat (limited to 'player')
-rw-r--r--player/lua/ytdl_hook.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index 9fb2d8e7cf..fe9ea5e903 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