Separate refetch to a new option

This commit is contained in:
Ajay Ramachandran
2020-09-04 12:39:00 -04:00
parent e0c6b687d3
commit d0061985ca
4 changed files with 56 additions and 23 deletions

View File

@@ -6,7 +6,6 @@ const utils = new Utils();
interface SBConfig {
userID: string,
// sponsorTimes: SBMap<string, SponsorTime[]>,
segmentTimes: SBMap<string, SponsorTime[]>,
defaultCategory: string,
whitelistedChannels: string[],
@@ -35,7 +34,8 @@ interface SBConfig {
audioNotificationOnSkip,
checkForUnlistedVideos: boolean,
testingServer: boolean,
hashPrefix: boolean
hashPrefix: boolean,
refetchWhenNotFound: boolean,
// What categories should be skipped
categorySelections: CategorySelection[],
@@ -168,6 +168,7 @@ var Config: SBObject = {
checkForUnlistedVideos: false,
testingServer: false,
hashPrefix: false,
refetchWhenNotFound: true,
categorySelections: [{
name: "sponsor",