this is not needed

This commit is contained in:
Jouni 2020-10-26 09:08:44 +02:00
parent 1c62995663
commit bdb0f48c4d
2 changed files with 3 additions and 4 deletions

2
README
View File

@ -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 There is also no cache so the ranges may get redownloaded
if you watch a video more than once. if you watch a video more than once.
b toggles between on/off
Here is a link to the original one: Here is a link to the original one:
https://github.com/po5/mpv_sponsorblock https://github.com/po5/mpv_sponsorblock

View File

@ -53,10 +53,7 @@ function file_loaded()
youtube_id = string.sub(youtube_id, 1, 11) youtube_id = string.sub(youtube_id, 1, 11)
getranges() getranges()
if not ranges then if not ranges then return end
mp.unregister_event(file_loaded)
return
end
ON = true ON = true
mp.add_key_binding("b","sponsorblock",toggle) mp.add_key_binding("b","sponsorblock",toggle)