mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Update src/routes/postSkipSegments.ts
Co-authored-by: Ajay Ramachandran <dev@ajay.app>
This commit is contained in:
@@ -382,7 +382,7 @@ async function checkEachSegmentValid(userID: string, videoID: VideoID
|
||||
}
|
||||
|
||||
// Check for POI segments before 1 second
|
||||
if (segments[i].category === CategoryActionType.POI && startTime < 1) {
|
||||
if (getCategoryActionType(segments[i].category) === CategoryActionType.POI && startTime < 1) {
|
||||
return { pass: false, errorMessage: "POI must be after 1 second", errorCode: 400};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user