Reimport with the latest improvements to the script
This commit is contained in:
parent
55e02552bb
commit
5bedaff845
7 changed files with 9903 additions and 335 deletions
|
@ -19,6 +19,7 @@ interface Cli {
|
|||
irregularPathUntagged?: boolean,
|
||||
tooBroad?: boolean,
|
||||
tooBroadUntagged?: boolean,
|
||||
skipUntil?: string,
|
||||
recent?: number,
|
||||
limit?: number,
|
||||
}
|
||||
|
@ -80,6 +81,7 @@ async function main() {
|
|||
tooBroadUntagged: args.tooBroadUntagged ?? false,
|
||||
irregularPath: args.irregularPath ?? false,
|
||||
irregularPathUntagged: args.irregularPathUntagged ?? false,
|
||||
skipUntil: args.skipUntil,
|
||||
games: args._,
|
||||
recent: args.recent,
|
||||
},
|
||||
|
|
|
@ -55,6 +55,7 @@ export class ManifestFile extends YamlFile<Manifest> {
|
|||
irregularPathUntagged: boolean,
|
||||
tooBroad: boolean,
|
||||
tooBroadUntagged: boolean,
|
||||
skipUntil: string | undefined,
|
||||
games: Array<string> | undefined,
|
||||
recent: number | undefined,
|
||||
},
|
||||
|
@ -62,7 +63,16 @@ export class ManifestFile extends YamlFile<Manifest> {
|
|||
steamCache: SteamGameCacheFile,
|
||||
): Promise<void> {
|
||||
let i = 0;
|
||||
let foundSkipUntil = false;
|
||||
for (const [title, info] of Object.entries(wikiCache)) {
|
||||
if (filter.skipUntil && !foundSkipUntil) {
|
||||
if (title === filter.skipUntil) {
|
||||
foundSkipUntil = true;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
let check = false;
|
||||
if (filter.all) {
|
||||
check = true;
|
||||
|
|
Reference in a new issue