Add remakes and remasters to game search command

This commit is contained in:
baz 2023-12-27 22:28:09 +00:00
parent 89818275c1
commit 08ca63b120
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ module.exports = {
body = body.concat('where id = ', gameid, '; ');
} else if (gamename) {
body = body.concat('search "', gamename, '"; ');
body = body.concat('limit 25; where (category = 0 | category = 4) & version_parent = null;');
body = body.concat('limit 25; where (category = 0 | category = 4 | category = 8 | category = 9) & version_parent = null;');
}
body = body.concat('fields *;');

View File

@ -41,7 +41,7 @@ module.exports = {
async function searchGamesWithMinimumReview(gamename) {
let body = `search "${gamename}"; `;
body = await body.concat('fields *; limit 25; where (category = 0 | category = 4) & version_parent = null & total_rating_count > 0;');
body = await body.concat('fields *; limit 25; where (category = 0 | category = 4 | category = 8 | category = 9) & version_parent = null & total_rating_count > 0;');
const games = await getGameJson(body);