Disable YouTube DL in mpv

mpv looks for ytdl on the path, which includes the CWD on Windows.
A malicious shared deck could place an executable called yt-dlp.exe in the
media folder, which mpv would then helpfully invoke the first time
a YouTube link was encountered.

A big thank you to Michael Lappas for the report.
This commit is contained in:
Damien Elmes 2025-05-10 18:38:58 +10:00
parent c33974f6ab
commit 5080451829
2 changed files with 2 additions and 0 deletions

View file

@ -88,6 +88,7 @@ class MPVBase:
"--keep-open=no",
"--autoload-files=no",
"--gapless-audio=no",
"--no-ytdl",
]
if is_win:

View file

@ -394,6 +394,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, VideoPlayer):
"--keep-open=no",
"--input-media-keys=no",
"--autoload-files=no",
"--no-ytdl",
]
)