mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-12 18:04:29 +01:00
Fix get branding by hash rong query
This commit is contained in:
parent
d08c423c6a
commit
65e7d24b7d
1 changed files with 1 additions and 1 deletions
|
@ -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[]>;
|
||||||
|
|
Loading…
Reference in a new issue