mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-19 14:09:06 +03:00
Fix segments always coming back as skip
This commit is contained in:
@@ -88,7 +88,7 @@ async function getSegmentsByVideoID(req: Request, videoID: VideoID, categories:
|
||||
if (forcePoiAsSkip) {
|
||||
processedSegments = processedSegments.map((segment) => ({
|
||||
...segment,
|
||||
actionType: ActionType.Skip
|
||||
actionType: segment.actionType === ActionType.Poi ? ActionType.Skip : segment.actionType
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ async function getSegmentsByHash(req: Request, hashedVideoIDPrefix: VideoIDHash,
|
||||
if (forcePoiAsSkip) {
|
||||
data.segments = data.segments.map((segment) => ({
|
||||
...segment,
|
||||
actionType: ActionType.Skip
|
||||
actionType: segment.actionType === ActionType.Poi ? ActionType.Skip : segment.actionType
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user