From dd2276099946a07e73c598d81ce0db35d93d71ea Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Sep 2024 09:05:18 +0200 Subject: ... --- user-profiles/mpv/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'user-profiles/mpv') diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 8fc38edd..2df87994 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix @@ -91,7 +91,8 @@ mp.commandv('quit', '4') end) mp.register_event('end-file', function(params) - if (params.reason == 'eof' or (do_del and params.reason == 'quit')) and del_path ~= ''' then + print('end-file: '..params.reason..', '..tostring(do_del)..', '..del_path) + if (params.reason == 'eof' or params.reason == 'stop' or (do_del and params.reason == 'quit')) and del_path ~= ''' then print('deleting: '..del_path) os.remove(del_path) end -- cgit v1.2.3