Skip to content

Commit 1f5644e

Browse files
committed
ytdl-hook: add srv3 to supported subtitle formats
This allows YouTube videos played directly from a URL to make use of subrandr's SRV3 support.
1 parent 45454f4 commit 1f5644e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

player/lua/ytdl_hook.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ local ext_map = {
7979

8080
local codec_map = {
8181
-- src pattern = mpv codec
82+
["srv3"] = "textsub/srv3",
8283
["vtt"] = "webvtt",
8384
["opus"] = "opus",
8485
["vp9"] = "vp9",
@@ -927,7 +928,7 @@ local function run_ytdl_hook(url)
927928

928929
local command = {
929930
ytdl.path, "--no-warnings", "-J", "--flat-playlist",
930-
"--sub-format", "ass/srt/best"
931+
"--sub-format", "srv3/ass/srt/best"
931932
}
932933

933934
-- Checks if video option is "no", change format accordingly,

0 commit comments

Comments
 (0)