mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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.
This commit is contained in:
parent
c33974f6ab
commit
5080451829
2 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,7 @@ class MPVBase:
|
||||||
"--keep-open=no",
|
"--keep-open=no",
|
||||||
"--autoload-files=no",
|
"--autoload-files=no",
|
||||||
"--gapless-audio=no",
|
"--gapless-audio=no",
|
||||||
|
"--no-ytdl",
|
||||||
]
|
]
|
||||||
|
|
||||||
if is_win:
|
if is_win:
|
||||||
|
|
|
@ -394,6 +394,7 @@ class SimpleMpvPlayer(SimpleProcessPlayer, VideoPlayer):
|
||||||
"--keep-open=no",
|
"--keep-open=no",
|
||||||
"--input-media-keys=no",
|
"--input-media-keys=no",
|
||||||
"--autoload-files=no",
|
"--autoload-files=no",
|
||||||
|
"--no-ytdl",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue