mpv/player
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
..
javascript input.lua,defaults.js: don't hardcode mp.input arguments 2024-10-04 21:13:29 +03:00
lua ytdl_hook.lua: always specify --write-srt 2024-10-10 18:28:41 +02:00
audio.c audio: add pitch-shifting feature 2024-08-07 22:56:17 +02:00
client.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
client.h
command.c command: avoid division by zero in av_timecode_make_string() 2024-10-09 00:36:35 +02:00
command.h
configfiles.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
core.h player/misc: add str_in_list() and use it 2024-08-10 23:27:40 +02:00
external_files.c player/external_files: fix null deref when cover-art-whitelist is empty 2024-09-29 22:56:40 +02:00
external_files.h misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
javascript.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
loadfile.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
lua.c lua: remove unused #define mp_lua_len 2024-09-26 16:45:08 +02:00
main.c misc/random: seed using libavutil/random_seed 2024-09-28 14:11:56 +02:00
misc.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
osd.c various: use talloc_replace 2024-09-08 17:33:27 +02:00
playloop.c player: don't decrement --ab-loop-count=N and add remaining-ab-loops 2024-07-26 20:09:19 +02:00
screenshot.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
screenshot.h
scripting.c player/scripting: remove outdated comment about posix_spawn 2024-07-29 21:00:48 +02:00
sub.c player/sub: ensure subtitles are updated for images with no audio 2024-10-10 13:17:47 +00:00
video.c player/audio: invert audio_started boolean 2024-08-01 11:45:13 +00:00