mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Category selections now save
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as CompileConfig from "../config.json";
|
||||
import { CategorySelection } from "./types";
|
||||
|
||||
interface SBConfig {
|
||||
userID: string,
|
||||
@@ -25,7 +26,10 @@ interface SBConfig {
|
||||
serverAddress: string,
|
||||
minDuration: number,
|
||||
checkForUnlistedVideos: boolean,
|
||||
mobileUpdateShowCount: number
|
||||
mobileUpdateShowCount: number,
|
||||
|
||||
// What categories should be skipped
|
||||
categorySelections: CategorySelection[]
|
||||
}
|
||||
|
||||
interface SBObject {
|
||||
@@ -120,7 +124,11 @@ var Config: SBObject = {
|
||||
serverAddress: CompileConfig.serverAddress,
|
||||
minDuration: 0,
|
||||
checkForUnlistedVideos: false,
|
||||
mobileUpdateShowCount: 0
|
||||
mobileUpdateShowCount: 0,
|
||||
categorySelections: [{
|
||||
name: "sponsor",
|
||||
autoSkip: true
|
||||
}]
|
||||
},
|
||||
localConfig: null,
|
||||
config: null,
|
||||
|
||||
Reference in New Issue
Block a user