mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 7f5363632ae63d68827b8cac2714ee8c37255778
Parent: ac31feed1d120ad54f58a88f6568ae4a4ed59c0e
Author: Ren Tatsumoto
Date:   Sat, 24 Oct 2020 08:09:54 +0300

use os.tmpname() on GNU/Linux

Diffstat:
Msubs2srs.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -435,7 +435,7 @@ end local function init_platform_nix() local self = {} - local clipfile_path = '/tmp/mpvacious_clipboard' + local clipfile_path = os.tmpname() mp.register_event('shutdown', function() os.remove(clipfile_path) end) self.copy_to_clipboard = function(_, text)