Populate Steam cache for some missing games

This commit is contained in:
mtkennerly 2022-07-05 17:52:59 +08:00
parent 4d8218b042
commit c0ce36724a
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
6 changed files with 732 additions and 14 deletions

View file

@ -530,7 +530,7 @@ export async function getRecentChanges(newest: Date, oldest: Date): Promise<Rece
* https://www.pcgamingwiki.com/wiki/Template:Game_data
*/
export async function getGame(pageTitle: string, cache: WikiGameCache, client: Wikiapi = null): Promise<string> {
console.log(pageTitle);
console.log(`Wiki: ${pageTitle}`);
const wiki = client === null ? makeApiClient() : client;
let page = await wiki.page(pageTitle, { rvprop: "ids|content" });
if (page.missing !== undefined) {