Category selections now save

This commit is contained in:
Ajay Ramachandran
2020-04-02 22:13:36 -04:00
parent 6ea87d7cd0
commit 3afde08a6e
4 changed files with 74 additions and 14 deletions

View File

@@ -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,