mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
Remove minimum sponsor duration for VIP
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user