mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

sub-playback.lua

Open Grapher2012 opened this issue 5 years ago • 1 comments

sub-playback.lua 'i - interactive mode on/off' does not work

Grapher2012 avatar Nov 03 '19 07:11 Grapher2012

Could you try this one - https://gist.github.com/kelciour/7edadc22a3a3cc4fee735e6ce742fd7e

Maybe it's relevant to the issue https://github.com/kelciour/mpv-scripts/commit/9a5cda4fc8f0896cec27dca60a32251009c0e9c5 and can be solved by changing srt_filename to

local srt_filename = mp.get_property("path"):gsub('\\','/'):match("^(.+)%.[^%.]+$")

kelciour avatar Nov 03 '19 09:11 kelciour