From b297fbac31070a47e2b55d146de4160110730a9e Mon Sep 17 00:00:00 2001 From: Jouni Date: Mon, 8 Feb 2021 03:53:43 +0200 Subject: [PATCH] change the time back --- sponsorblock_minimal.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sponsorblock_minimal.lua b/sponsorblock_minimal.lua index 8c724e1..9d96ec4 100644 --- a/sponsorblock_minimal.lua +++ b/sponsorblock_minimal.lua @@ -39,7 +39,9 @@ function skip_ads(name,pos) --this message may sometimes be wrong --it only seems to be a visual thing though mp.osd_message("[sponsorblock] skipping forward "..math.floor(tonumber(v)-mp.get_property("time-pos")).."s") - mp.set_property("time-pos",tonumber(v)+0.000001) + --need to do the +0.01 otherwise mpv will start spamming skip sometimes + --example: https://www.youtube.com/watch?v=4ypMJzeNooo + mp.set_property("time-pos",tonumber(v)+0.01) return end end