update auotmod check

- remove NB code
- reduce complexity + unnecessary iterations
- use client duration if given
This commit is contained in:
Michael C
2022-03-31 16:02:50 -04:00
parent fe0afd58bc
commit 76cc603a3f
2 changed files with 42 additions and 167 deletions

View File

@@ -734,22 +734,6 @@ describe("postSkipSegments", () => {
.catch(err => done(err));
});
it("Should be rejected if NB's predicted probability is <70%.", (done) => {
const videoID = "LevkAjUE6d4";
postSkipSegmentParam({
videoID,
startTime: 40,
endTime: 60,
userID: submitUserTwo,
category: "sponsor"
})
.then(res => {
assert.strictEqual(res.status, 200);
done();
})
.catch(err => done(err));
});
it("Should be rejected with custom message if user has to many active warnings", (done) => {
postSkipSegmentJSON({
userID: warnUser01,