Improve template handling and import some data with fixed BR tags

This commit is contained in:
mtkennerly 2020-07-16 00:02:24 -04:00
parent 9b87fb9356
commit 9d189021c9
8 changed files with 537 additions and 184 deletions

View file

@ -54,7 +54,7 @@ export class ManifestFile extends YamlFile<Manifest> {
irregularPath: boolean,
tooBroad: boolean,
tooBroadUntagged: boolean,
game: string | undefined,
games: Array<string> | undefined,
recent: number | undefined,
},
limit: number | undefined,
@ -84,7 +84,7 @@ export class ManifestFile extends YamlFile<Manifest> {
if (filter.irregularPath && (wikiCache[title].irregularPath || Object.keys(this.data[title]?.files ?? []).some(x => x.includes("{{") || x.includes("</") || x.includes("<br>") || x.includes("<br/>")))) {
check = true;
}
if (filter.game === title) {
if (filter.games && filter.games.includes(title)) {
check = true;
}
if (filter.tooBroad && info.tooBroad) {