diff options
author | Ricardo Constantino <wiiaboo@gmail.com> | 2017-06-08 19:45:49 +0100 |
---|---|---|
committer | Ricardo Constantino <wiiaboo@gmail.com> | 2017-06-08 19:45:49 +0100 |
commit | 289b11553b985ecdc8a91a9beefb376ee86ddc5f (patch) | |
tree | a0badc455aba5c1f603067ccc1ec04dd419dca2a /player/lua | |
parent | 9821737d0611d3e1a4a3ede40bd796f49a6e3445 (diff) | |
download | mpv-289b11553b985ecdc8a91a9beefb376ee86ddc5f.tar.bz2 mpv-289b11553b985ecdc8a91a9beefb376ee86ddc5f.tar.xz |
ytdl_hook: don't override user-set start time
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index db33437ba1..55546f2be8 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -194,7 +194,8 @@ local function add_single_video(json) end -- set start time - if not (json.start_time == nil) then + if not (json.start_time == nil) and + not option_was_set("start") then msg.debug("Setting start to: " .. json.start_time .. " secs") mp.set_property("file-local-options/start", json.start_time) end |