mpv doesn't exit #14945
mpv doesn't exit
#14945
-
with lua if i run os.execute('sleep 10000') in background without blocking the video I can't exit with q or ctrl + c, even if i try to bind k with os.execute('pkill -9 mpv') it waits for the sleep command to finish, is there any way i can start a new thread or something? |
Beta Was this translation helpful? Give feedback.
Answered by
guidocella
Sep 29, 2024
Replies: 2 comments 4 replies
-
Pressing ctrl+c twice should quit. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes that would work, but the sleep command was like a metaphorical command,
i made an auto-sub script and it downloads all available subs at once but
sometimes i start the wrong episode and when i click q or ctrl+c mpv
freezes until all the subs are downloaded, ctrl+c closes the os.execute but
not the whole function so it just downloads the next sub in queue, is there
maybe a way to check if I've pressed ctrl+c?, i tried binding a key to just
kill -9 the whole mpv but that doesn't freeze mpv it just waits for the
other functions to finish and is executed after all the downloading is done
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can place this in a different script: