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)