read script-opts + set less aggressive default

This commit is contained in:
Jouni 2022-06-13 20:15:47 +03:00
parent b71beb60eb
commit 18b4939805

View File

@ -3,13 +3,17 @@
-- This script skips sponsored segments of YouTube videos
-- using data from https://github.com/ajayyy/SponsorBlock
local opt = require 'mp.options'
local options = {
server = "https://sponsor.ajay.app/api/skipSegments",
-- Categories to fetch and skip
categories = '"sponsor","intro","outro","interaction","selfpromo"'
categories = "sponsor"
}
opt.read_options(options)
function getranges()
local luacurl_available, cURL = pcall(require,'cURL')