Change chapter name suggestion requirements

This commit is contained in:
Ajay
2022-09-02 15:23:08 -04:00
parent 6a61747573
commit b413795e45

View File

@@ -22,7 +22,7 @@ export async function getChapterNames(req: Request, res: Response): Promise<Resp
const descriptions = await db.prepare("all", ` const descriptions = await db.prepare("all", `
SELECT "description" SELECT "description"
FROM "sponsorTimes" FROM "sponsorTimes"
WHERE ("votes" > 0 OR ("views" > 100 AND "votes" >= 0)) AND "videoID" IN ( WHERE ("locked" = 1 OR "votes" > 0 OR ("views" > 25 AND "votes" >= 0)) AND "videoID" IN (
SELECT "videoID" SELECT "videoID"
FROM "videoInfo" FROM "videoInfo"
WHERE "channelID" = ? WHERE "channelID" = ?