mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +03:00
Added intermission category
This commit is contained in:
@@ -2,5 +2,5 @@
|
|||||||
"serverAddress": "https://sponsor.ajay.app",
|
"serverAddress": "https://sponsor.ajay.app",
|
||||||
"testingServerAddress": "https://sponsor.ajay.app/test",
|
"testingServerAddress": "https://sponsor.ajay.app/test",
|
||||||
"serverAddressComment": "This specifies the default SponsorBlock server to connect to",
|
"serverAddressComment": "This specifies the default SponsorBlock server to connect to",
|
||||||
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"]
|
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "intermission", "music_offtopic"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -512,6 +512,12 @@
|
|||||||
"category_selfpromo_description": {
|
"category_selfpromo_description": {
|
||||||
"message": "Similar to \"sponsor\" except for unpaid or self promotion. This includes sections about merchandise, donations, or information about who they collaborated with."
|
"message": "Similar to \"sponsor\" except for unpaid or self promotion. This includes sections about merchandise, donations, or information about who they collaborated with."
|
||||||
},
|
},
|
||||||
|
"category_intermission": {
|
||||||
|
"message": "Intermission"
|
||||||
|
},
|
||||||
|
"category_intermission_description": {
|
||||||
|
"message": "An interval without actual content. Could be a pause, static frame, or repeating animation in the video. Should not be used for pauses or transitions with actual content"
|
||||||
|
},
|
||||||
"category_music_offtopic": {
|
"category_music_offtopic": {
|
||||||
"message": "Music: Non-Music Section"
|
"message": "Music: Non-Music Section"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -48,8 +48,10 @@ interface SBConfig {
|
|||||||
"preview-interaction": PreviewBarOption,
|
"preview-interaction": PreviewBarOption,
|
||||||
"selfpromo": PreviewBarOption,
|
"selfpromo": PreviewBarOption,
|
||||||
"preview-selfpromo": PreviewBarOption,
|
"preview-selfpromo": PreviewBarOption,
|
||||||
|
"intermission": PreviewBarOption,
|
||||||
|
"preview-intermission": PreviewBarOption
|
||||||
"music_offtopic": PreviewBarOption,
|
"music_offtopic": PreviewBarOption,
|
||||||
"preview-music_offtopic": PreviewBarOption
|
"preview-music_offtopic": PreviewBarOption,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,6 +198,14 @@ var Config: SBObject = {
|
|||||||
color: "#bfbf35",
|
color: "#bfbf35",
|
||||||
opacity: "0.7"
|
opacity: "0.7"
|
||||||
},
|
},
|
||||||
|
"intermission": {
|
||||||
|
color: "#45a8ff",
|
||||||
|
opacity: "0.7"
|
||||||
|
},
|
||||||
|
"preview-intermission": {
|
||||||
|
color: "#0066bf",
|
||||||
|
opacity: "0.7"
|
||||||
|
},
|
||||||
"music_offtopic": {
|
"music_offtopic": {
|
||||||
color: "#ff9900",
|
color: "#ff9900",
|
||||||
opacity: "0.7"
|
opacity: "0.7"
|
||||||
@@ -398,6 +408,12 @@ function addDefaults() {
|
|||||||
for (const key in Config.defaults) {
|
for (const key in Config.defaults) {
|
||||||
if(!Config.localConfig.hasOwnProperty(key)) {
|
if(!Config.localConfig.hasOwnProperty(key)) {
|
||||||
Config.localConfig[key] = Config.defaults[key];
|
Config.localConfig[key] = Config.defaults[key];
|
||||||
|
} else if (key === "barTypes") {
|
||||||
|
for (const key2 in Config.defaults[key]) {
|
||||||
|
if(!Config.localConfig[key].hasOwnProperty(key2)) {
|
||||||
|
Config.localConfig[key][key2] = Config.defaults[key][key2];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user