1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-09 15:47:44 +00:00
mpv/player
Guido Cella 6ed3781a3d ytdl_hook.lua: add include script-opt of URLs to try with ytdl first
By the default mpv tries opening URLs with ffmpeg first, and users who
don't configure try_ytdl_first get a slower startup for youtube URLs, on
top of yt-dlp already being slow.

Fix this by adding a script-opt of URL pattern to try with ytdl first.
Youtube and twitch are included by default.

Compared to the alternative of trying ytdl first by default and
excluding URLs with a media extension, this only works for the sites
explicitly included in the new option's value, but doesn't have false
positives on media URLs without an extension.
2024-10-09 01:08:31 +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: add include script-opt of URLs to try with ytdl first 2024-10-09 01:08:31 +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
javascript.c
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 various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
video.c player/audio: invert audio_started boolean 2024-08-01 11:45:13 +00:00