Remove minimum sponsor duration for VIP

This commit is contained in:
Ajay Ramachandran
2020-12-20 13:52:22 -05:00
parent 5f4cb63324
commit cb0906a52d

View File

@@ -339,7 +339,7 @@ export async function postSkipSegments(req: Request, res: Response) {
return; return;
} }
if (segments[i].category === "sponsor" && Math.abs(startTime - endTime) < 1) { if (!isVIP && segments[i].category === "sponsor" && Math.abs(startTime - endTime) < 1) {
// Too short // Too short
res.status(400).send("Sponsors must be longer than 1 second long"); res.status(400).send("Sponsors must be longer than 1 second long");
return; return;