erdnaxeli / castblock

Automatically skip sponsor segments and ads in YouTube videos playing on Chromecast.
MIT License
182 stars 20 forks source link

Configuration for segment types #13

Closed stephen304 closed 3 years ago

stephen304 commented 3 years ago

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.

erdnaxeli commented 3 years ago

Is there a list of all available segments type somewhere?

stephen304 commented 3 years ago

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 .

stephen304 commented 3 years ago

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

erdnaxeli commented 3 years ago

Thanks! The JSON format is weird, first time I see that in an URL parameter.

erdnaxeli commented 3 years ago

Fixed in https://github.com/erdnaxeli/castblock/commit/03c2c516c70fcba665edaf1ea455cdd716320641.