mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 21:47:02 +03:00
Fix get branding by hash rong query
This commit is contained in:
@@ -107,7 +107,7 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
|
|||||||
const getSegments = () => db.prepare(
|
const getSegments = () => db.prepare(
|
||||||
"all",
|
"all",
|
||||||
`SELECT "videoID", "startTime", "endTime", "videoDuration" FROM "sponsorTimes"
|
`SELECT "videoID", "startTime", "endTime", "videoDuration" FROM "sponsorTimes"
|
||||||
WHERE "votes" >= 0 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`,
|
WHERE "votes" > -2 AND "shadowHidden" = 0 AND "hidden" = 0 AND "actionType" = 'skip' AND "hashedVideoID" LIKE ? AND "service" = ?`,
|
||||||
[`${videoHashPrefix}%`, service],
|
[`${videoHashPrefix}%`, service],
|
||||||
{ useReplica: true }
|
{ useReplica: true }
|
||||||
) as Promise<BrandingSegmentHashDBResult[]>;
|
) as Promise<BrandingSegmentHashDBResult[]>;
|
||||||
|
|||||||
Reference in New Issue
Block a user