mpv/player/lua
Crend King c8860fd816 ytdl_hook.lua: always specify --write-srt
Currently by default mpv sets --all-subs when calling yt-dlp for JSON
info. --all-subs is an option that simply expands to --sub-langs all
--write-subs. --write-subs is special that without it yt-dlp will no
longer extract any subtitle info.

mpv's yt-dlp hook has a logic that if user specify any sub-langs in
--ytdl-raw-options, it no longer uses --all-subs. Unfortunately, this
means unaware users will not get any subtitle any more until they study
the mpv internal code and add their own --write-subs.

This PR always specifies --write-srt, an alias of --write-subs, in the
hook, so users don't have to. The alias is used to maintain
compatibility with youtube-dl.

Fixes issue #14818
2024-10-10 18:28:41 +02:00
..
assdraw.lua
auto_profiles.lua auto_profiles.lua: fix some lint warnings 2024-05-12 20:06:39 +02:00
console.lua console.lua: allow clicking selectable items 2024-10-08 20:37:56 +02:00
defaults.lua defaults.lua: handle canceled key bindings 2024-06-06 23:38:39 +03:00
fzy.lua
input.lua input.lua,defaults.js: don't hardcode mp.input arguments 2024-10-04 21:13:29 +03:00
meson.build meson: use relative file paths for file2string 2024-09-21 23:39:10 +02:00
options.lua options.lua: fix some lint warnings 2024-05-12 20:06:39 +02:00
osc.lua {osc,select}.lua: show playlist entries with trailing / 2024-08-06 20:27:33 +02:00
select.lua select.lua: don't use add_forced_key_binding 2024-09-19 13:57:39 +00:00
stats.lua stats.lua: allow keybindings to toggle the display of a specific page 2024-10-04 21:13:29 +03:00
ytdl_hook.lua ytdl_hook.lua: always specify --write-srt 2024-10-10 18:28:41 +02:00