mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
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.
This commit is contained in:
committed by
Kacper Michajłow
parent
92403a068c
commit
6ed3781a3d
1
DOCS/interface-changes/ytdl_hook-include.txt
Normal file
1
DOCS/interface-changes/ytdl_hook-include.txt
Normal file
@@ -0,0 +1 @@
|
||||
add `ytdl_hook-include` script-opt
|
||||
Reference in New Issue
Block a user