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.

(cherry picked from commit 5080451829)
This commit is contained in:
Damien Elmes 2025-05-10 18:38:58 +10:00
parent f161c9ce01
commit 6213c9b6f9
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

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