mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-17 03:44:25 +03:00
Add requiredSegments
@@ -27,9 +27,10 @@ ________________________________________________________________________________
|
|||||||
videoID: string,
|
videoID: string,
|
||||||
category: string, // Optional, defaults to "sponsor", can be repeated for multiple categories.
|
category: string, // Optional, defaults to "sponsor", can be repeated for multiple categories.
|
||||||
// See https://github.com/ajayyy/SponsorBlock/wiki/Types#category
|
// See https://github.com/ajayyy/SponsorBlock/wiki/Types#category
|
||||||
|
|
||||||
categories: string[], // Optional, use this instead of "category" if you want multiple categories. Will look like ["sponsor","intro"]
|
categories: string[], // Optional, use this instead of "category" if you want multiple categories. Will look like ["sponsor","intro"]
|
||||||
|
|
||||||
|
requiredSegments: string[], // Optional, list of segment UUIDs to require be retrieved, even if they don't meet the minimum vote threshold, can be replaced with "requiredSegment" and repeated for multiple segments like category.
|
||||||
|
|
||||||
service: string // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
service: string // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -59,9 +60,10 @@ __________________________________________________________________
|
|||||||
{
|
{
|
||||||
category: string, // Optional, defaults to "sponsor", can be repeated for multiple categories.
|
category: string, // Optional, defaults to "sponsor", can be repeated for multiple categories.
|
||||||
// See https://github.com/ajayyy/SponsorBlock/wiki/Types#category
|
// See https://github.com/ajayyy/SponsorBlock/wiki/Types#category
|
||||||
|
|
||||||
categories: string[], // Optional, use this instead of "category" if you want multiple categories. Will look like ["sponsor","intro"]
|
categories: string[], // Optional, use this instead of "category" if you want multiple categories. Will look like ["sponsor","intro"]
|
||||||
|
|
||||||
|
requiredSegments: string[], // Optional, list of segment UUIDs to require be retrieved, even if they don't meet the minimum vote threshold, can be replaced with "requiredSegment" and repeated for multiple segments like category.
|
||||||
|
|
||||||
service: string // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
service: string // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user