mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
Add exclusive access category
This commit is contained in:
@@ -19,10 +19,11 @@ 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", "filler", "poi_highlight", "chapter"],
|
categoryList: ["sponsor", "selfpromo", "exclusive_access", "interaction", "intro", "outro", "preview", "music_offtopic", "filler", "poi_highlight", "chapter"],
|
||||||
categorySupport: {
|
categorySupport: {
|
||||||
sponsor: ["skip", "mute", "full"],
|
sponsor: ["skip", "mute", "full"],
|
||||||
selfpromo: ["skip", "mute", "full"],
|
selfpromo: ["skip", "mute", "full"],
|
||||||
|
exclusive_access: ["full"],
|
||||||
interaction: ["skip", "mute"],
|
interaction: ["skip", "mute"],
|
||||||
intro: ["skip", "mute"],
|
intro: ["skip", "mute"],
|
||||||
outro: ["skip", "mute"],
|
outro: ["skip", "mute"],
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ describe("getLockReason", () => {
|
|||||||
const expected = [
|
const expected = [
|
||||||
{ category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 },
|
{ category: "sponsor", locked: 1, reason: "sponsor-reason", userID: vipUserID1, userName: vipUserName1 },
|
||||||
{ category: "selfpromo", locked: 0, reason: "", userID: "", userName: "" },
|
{ 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: "interaction", locked: 1, reason: "interaction-reason", userID: vipUserID1, userName: vipUserName1 },
|
||||||
{ category: "intro", locked: 0, reason: "", userID: "", userName: "" },
|
{ category: "intro", locked: 0, reason: "", userID: "", userName: "" },
|
||||||
{ category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 },
|
{ category: "outro", locked: 1, reason: "outro-reason", userID: vipUserID2, userName: vipUserName2 },
|
||||||
|
|||||||
Reference in New Issue
Block a user