mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-31 11:56:27 +03:00
Look at -1 votes for branding sb segments
This commit is contained in:
@@ -43,7 +43,7 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service:
|
|||||||
const getSegments = () => db.prepare(
|
const getSegments = () => db.prepare(
|
||||||
"all",
|
"all",
|
||||||
`SELECT "startTime", "endTime", "videoDuration" FROM "sponsorTimes"
|
`SELECT "startTime", "endTime", "videoDuration" FROM "sponsorTimes"
|
||||||
WHERE "votes" >= 0 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "videoID" = ? AND "service" = ?`,
|
WHERE "votes" > -2 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "videoID" = ? AND "service" = ?`,
|
||||||
[videoID, service],
|
[videoID, service],
|
||||||
{ useReplica: true }
|
{ useReplica: true }
|
||||||
) as Promise<BrandingSegmentDBResult[]>;
|
) as Promise<BrandingSegmentDBResult[]>;
|
||||||
|
|||||||
Reference in New Issue
Block a user