Replies: 3 comments 2 replies
-
This is a yt-dlp issue, and not an mpv issue. I'm guessing that the single exe yt-dlp.exe needs to extract itself, and it does it to %TEMP%. You should ask them why it doesn't clean up completely. As an alternative, you can download the yt-dlp windows zip package instead of the single-executable, extract it someplace, and then tell mpv where it is, e.g. at your mpv.conf add this line (with the path adjusted to your system):
Then it's already extracted and should not create those directories at the temp dir. |
Beta Was this translation helpful? Give feedback.
-
I don't see how it can be related to mpv. mpv executes yt-dlp.exe (or whatever other name it has) and captures its output. It doesn't care and doesn't control how yt-dlp.exe runs, and it doesn't know and doesn't control whether or not it extracts itself or does any other thing. This is completely outside the control of mpv. |
Beta Was this translation helpful? Give feedback.
-
I don't know what "pyinstaller" refers to. I'm guessing it's related to whatever thing which is used to create a single windows executable from a python project with several files. This thing probably handles the packaging of a python project into a single windows executable, and then handles the startup/extraction/run/cleanup of that single exe. I don't know which tools are used to achieve that. |
Beta Was this translation helpful? Give feedback.
-
as far as I understand the files in the %temp% folder generated by yt-dlp.exe are supposed to automatically delete themselves after closing mpv or something similar, however only some of them do and most remain on my pc taking up gigabytes of space
I think this happens most often when I'm running a playlist as I haven't noticed them not being deleted when running a single video but I'm not entirely sure about that
what can I possibly do here? what could be the cause and what is the solution? I'm looking for a more in-depth explanation rather than just a workaround like creating a batch file to remove these files and running it on startup
Beta Was this translation helpful? Give feedback.
All reactions