Closed stephen304 closed 3 years ago
Is there a list of all available segments type somewhere?
Yep, https://github.com/ajayyy/SponsorBlock/wiki/Types#category
It seems it wants the string literal: ["sponsor","selfpromo"]
with the
quotes escaped worked for me.
On Mon, May 10, 2021, 7:40 AM Alexandre Morignot @.***> wrote:
Is there a list of all available segments type somewhere?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/erdnaxeli/castblock/issues/13#issuecomment-836591249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHPXGZZ2YVHP3FEAPUG2ALTM7A3NANCNFSM44NS5MXA .
Since email responses don't support markdown:
params = URI::Params.encode({
- "category" => "sponsor",
+ "categories" => "[\"sponsor\",\"selfpromo\",\"interaction\"]",
"videoID" => content_id,
})
Is how I'm currently using it
Thanks! The JSON format is weird, first time I see that in an URL parameter.
It would be nice to be able to configure the segment types to skip, I like to skip a lot of them including unpaid self promotion, intros, and interaction reminders.