From bdb0f48c4dc2743fd2830db168bc6b355b7eda97 Mon Sep 17 00:00:00 2001 From: Jouni Date: Mon, 26 Oct 2020 09:08:44 +0200 Subject: [PATCH] this is not needed --- README | 2 ++ sponsorblock_minimal.lua | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README b/README index e44b29c..fe38fe2 100644 --- a/README +++ b/README @@ -5,5 +5,7 @@ Also this uses curl rather than python to get the ranges. There is also no cache so the ranges may get redownloaded if you watch a video more than once. +b toggles between on/off + Here is a link to the original one: https://github.com/po5/mpv_sponsorblock diff --git a/sponsorblock_minimal.lua b/sponsorblock_minimal.lua index de89282..6cf98ba 100644 --- a/sponsorblock_minimal.lua +++ b/sponsorblock_minimal.lua @@ -53,10 +53,7 @@ function file_loaded() youtube_id = string.sub(youtube_id, 1, 11) getranges() - if not ranges then - mp.unregister_event(file_loaded) - return - end + if not ranges then return end ON = true mp.add_key_binding("b","sponsorblock",toggle)