git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca23754
)
Make "X players" categories more friendly
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 28 Dec 2020 19:54:15 +0000
(20:54 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 28 Dec 2020 19:54:15 +0000
(20:54 +0100)
bin/import-game-data.php
patch
|
blob
|
history
diff --git
a/bin/import-game-data.php
b/bin/import-game-data.php
index 76d1312a14ac3f65f5b9c3f965aa779d1becb41a..782910f53d159e64e0d8763795968d09124fd22e 100755
(executable)
--- a/
bin/import-game-data.php
+++ b/
bin/import-game-data.php
@@
-221,7
+221,18
@@
function buildDiscover(array $games)
foreach ($players as $num => $title) {
writeJson(
'api/v1/discover-data/' . categoryPath($title) . '.json',
- buildDiscoverCategory($title, filterByPlayers($games, $num))
+ buildDiscoverCategory(
+ $title,
+ //I do not want emulators here,
+ // and neither Streaming apps
+ filterByGenre(
+ filterByGenre(
+ filterByPlayers($games, $num),
+ 'Emulator', true
+ ),
+ 'App', true
+ )
+ )
);
}