mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Add exclusive access category
This commit is contained in:
parent
6fe7200481
commit
76bfd27b33
2 changed files with 3 additions and 1 deletions
|
@ -19,10 +19,11 @@ addDefaults(config, {
|
|||
privateDBSchema: "./databases/_private.db.sql",
|
||||
readOnly: false,
|
||||
webhooks: [],
|
||||
categoryList: ["sponsor", "selfpromo", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight", "chapter"],
|
||||
categoryList: ["sponsor", "selfpromo", "exclusive_access", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight", "chapter"],
|
||||
categorySupport: {
|
||||
sponsor: ["skip", "mute", "full"],
|
||||
selfpromo: ["skip", "mute", "full"],
|
||||
exclusive_access: ["full"],
|
||||
interaction: ["skip", "mute"],
|
||||
intro: ["skip", "mute"],
|
||||
outro: ["skip", "mute"],
|
||||
|
|
|
@ -103,6 +103,7 @@ describe("getLockReason", () => {
|
|||
const expected = [
|
||||
{ category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 },
|
||||
{ category: "selfpromo", locked: 0, reason: "", userID: "", userName: "" },
|
||||
{ category: "exclusive_access", locked: 0, reason: "", userID: "", userName: "" },
|
||||
{ category: "interaction", locked: 1, reason: "interaction-reason", userID: vipUserID1, userName: vipUserName1 },
|
||||
{ category: "intro", locked: 0, reason: "", userID: "", userName: "" },
|
||||
{ category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 },
|
||||
|
|
Loading…
Reference in a new issue