mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-15 07:57:05 +03:00
Allow mute intro, outro, preview and add filler
This commit is contained in:
@@ -19,14 +19,15 @@ addDefaults(config, {
|
|||||||
privateDBSchema: "./databases/_private.db.sql",
|
privateDBSchema: "./databases/_private.db.sql",
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
webhooks: [],
|
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: {
|
categorySupport: {
|
||||||
sponsor: ["skip", "mute"],
|
sponsor: ["skip", "mute"],
|
||||||
selfpromo: ["skip", "mute"],
|
selfpromo: ["skip", "mute"],
|
||||||
interaction: ["skip", "mute"],
|
interaction: ["skip", "mute"],
|
||||||
intro: ["skip"],
|
intro: ["skip", "mute"],
|
||||||
outro: ["skip"],
|
outro: ["skip", "mute"],
|
||||||
preview: ["skip"],
|
preview: ["skip", "mute"],
|
||||||
|
filler: ["skip", "mute"],
|
||||||
music_offtopic: ["skip"],
|
music_offtopic: ["skip"],
|
||||||
poi_highlight: ["skip"],
|
poi_highlight: ["skip"],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -181,14 +181,14 @@ describe("postSkipSegments", () => {
|
|||||||
.catch(err => done(err));
|
.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";
|
const videoID = "postSkip4";
|
||||||
postSkipSegmentJSON({
|
postSkipSegmentJSON({
|
||||||
userID: submitUserOne,
|
userID: submitUserOne,
|
||||||
videoID,
|
videoID,
|
||||||
segments: [{
|
segments: [{
|
||||||
segment: [0, 10],
|
segment: [0, 10],
|
||||||
category: "intro",
|
category: "music_offtopic",
|
||||||
actionType: "mute"
|
actionType: "mute"
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user