mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
f161c9ce01
commit
6213c9b6f9
2 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,7 @@ class MPVBase:
|
|||
"--keep-open=no",
|
||||
"--autoload-files=no",
|
||||
"--gapless-audio=no",
|
||||
"--no-ytdl",
|
||||
]
|
||||
|
||||
if is_win:
|
||||
|
|
|
@ -388,6 +388,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, VideoPlayer):
|
|||
"--keep-open=no",
|
||||
"--input-media-keys=no",
|
||||
"--autoload-files=no",
|
||||
"--no-ytdl",
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue