Add remakes and remasters to game search command
This commit is contained in:
parent
89818275c1
commit
08ca63b120
|
@ -24,7 +24,7 @@ module.exports = {
|
||||||
body = body.concat('where id = ', gameid, '; ');
|
body = body.concat('where id = ', gameid, '; ');
|
||||||
} else if (gamename) {
|
} else if (gamename) {
|
||||||
body = body.concat('search "', 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 *;');
|
body = body.concat('fields *;');
|
||||||
|
|
|
@ -41,7 +41,7 @@ module.exports = {
|
||||||
|
|
||||||
async function searchGamesWithMinimumReview(gamename) {
|
async function searchGamesWithMinimumReview(gamename) {
|
||||||
let body = `search "${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);
|
const games = await getGameJson(body);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue