mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 15:06:59 +03:00
Update test cases with new automod api
This commit is contained in:
@@ -15,6 +15,17 @@ app.post('/CompletelyIncorrectReportWebhook', (req, res) => {
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
app.get('/NeuralBlock/api/checkSponsorSegments', (req, res) => {
|
||||
if (req.query.vid === "LevkAjUE6d4") {
|
||||
res.json({
|
||||
probabilities: [0.69]
|
||||
});
|
||||
return;
|
||||
}
|
||||
res.sendStatus(500);
|
||||
});
|
||||
|
||||
//getSponsorSegments is no longer being used for automod
|
||||
app.get('/NeuralBlock/api/getSponsorSegments', (req, res) => {
|
||||
if (req.query.vid === "LevkAjUE6d4") {
|
||||
res.json({
|
||||
@@ -22,7 +33,6 @@ app.get('/NeuralBlock/api/getSponsorSegments', (req, res) => {
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
res.sendStatus(500);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user