mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix segments always coming back as skip
This commit is contained in:
parent
acc983b829
commit
985039a86b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue