summaryrefslogtreecommitdiffstats
path: root/player/lua/ytdl_hook.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-01-05 08:45:10 +0100
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commit27a09b42ed04ecd73215ab73ac146b287c3fd9f6 (patch)
treeaeb8a2c02fe2ad58cb8843d22266b161dbd0ee39 /player/lua/ytdl_hook.lua
parentb230525352a8c43f00497774f81569c4ea026d6b (diff)
downloadmpv-27a09b42ed04ecd73215ab73ac146b287c3fd9f6.tar.bz2
mpv-27a09b42ed04ecd73215ab73ac146b287c3fd9f6.tar.xz
ytdl_hook: disable EDL-generated useless chapters when merging streams
(Yes, a bit odd how this header is needed only for the first stream.)
Diffstat (limited to 'player/lua/ytdl_hook.lua')
-rw-r--r--player/lua/ytdl_hook.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index fc144ee33f..7a6bb170c6 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -327,7 +327,8 @@ local function add_single_video(json)
for i = 1, #streams do
streams[i] = edl_escape(streams[i])
end
- streamurl = "edl://" .. table.concat(streams, ";!new_stream;") .. ";"
+ streamurl = "edl://!no_chapters;" ..
+ table.concat(streams, ";!new_stream;") .. ";"
else
streamurl = streams[1]
end