From 808066a5ed773995236c1f772a5f97972482e054 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 17 Jul 2023 19:36:58 -0400 Subject: [PATCH] Look at -1 votes for branding sb segments --- src/routes/getBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index e2bfeee..fd99638 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -43,7 +43,7 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service: const getSegments = () => db.prepare( "all", `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], { useReplica: true } ) as Promise;