1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-09 15:47:44 +00:00
mpv/player/lua
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
..
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 scripting: add mp.input.select() 2024-05-07 22:34:22 +02:00
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: add include script-opt of URLs to try with ytdl first 2024-10-09 01:08:31 +02:00