Fix handling of page moves in recent changes when no redirect is left and there are no edits since the move

This commit is contained in:
mtkennerly 2020-08-04 16:42:12 -04:00
parent eec7d58e6e
commit 18eb5e91d7
7 changed files with 566 additions and 402 deletions

View file

@ -132,10 +132,15 @@ export class ManifestFile extends YamlFile<Manifest> {
}
}
const game = await getGame(title, wikiCache);
delete wikiCache[title].recentlyChanged;
if (game.files === undefined && game.registry === undefined && game.steam?.id === undefined) {
const [verifiedTitle, game] = await getGame(title, wikiCache);
delete wikiCache[verifiedTitle].recentlyChanged;
if (verifiedTitle !== title) {
delete this.data[title];
}
if (game.files === undefined && game.registry === undefined && game.steam?.id === undefined) {
delete this.data[verifiedTitle];
continue;
}
if (game.steam?.id !== undefined) {
@ -147,7 +152,7 @@ export class ManifestFile extends YamlFile<Manifest> {
game.installDir[installDir] = {}
}
}
this.data[title] = game;
this.data[verifiedTitle] = game;
await new Promise(resolve => setTimeout(resolve, DELAY_BETWEEN_GAMES_MS));
}