From db48953e39a6874774666100c5c4b29ce31bf81b Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 8 Nov 2021 19:22:17 -0500 Subject: [PATCH] Allow mute intro, outro, preview and add filler --- src/config.ts | 9 +++++---- test/cases/postSkipSegments.ts | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/config.ts b/src/config.ts index d28d2aa..d39280f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -19,14 +19,15 @@ addDefaults(config, { privateDBSchema: "./databases/_private.db.sql", readOnly: false, webhooks: [], - categoryList: ["sponsor", "selfpromo", "interaction", "intro", "outro", "preview", "music_offtopic", "poi_highlight"], + categoryList: ["sponsor", "selfpromo", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight"], categorySupport: { sponsor: ["skip", "mute"], selfpromo: ["skip", "mute"], interaction: ["skip", "mute"], - intro: ["skip"], - outro: ["skip"], - preview: ["skip"], + intro: ["skip", "mute"], + outro: ["skip", "mute"], + preview: ["skip", "mute"], + filler: ["skip", "mute"], music_offtopic: ["skip"], poi_highlight: ["skip"], }, diff --git a/test/cases/postSkipSegments.ts b/test/cases/postSkipSegments.ts index b4d7f4f..ec16dbd 100644 --- a/test/cases/postSkipSegments.ts +++ b/test/cases/postSkipSegments.ts @@ -181,14 +181,14 @@ describe("postSkipSegments", () => { .catch(err => done(err)); }); - it("Should not be able to submit an intro with mute action type (JSON method)", (done) => { + it("Should not be able to submit an music_offtopic with mute action type (JSON method)", (done) => { const videoID = "postSkip4"; postSkipSegmentJSON({ userID: submitUserOne, videoID, segments: [{ segment: [0, 10], - category: "intro", + category: "music_offtopic", actionType: "mute" }], })