X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/d78e75a54d3433efd32af3f87d9dabc8037f78a7..d33aeec287423662ca1e63252d6b63f550d37e83:/bin/filters.php diff --git a/bin/filters.php b/bin/filters.php index 9cac07a..f899be0 100644 --- a/bin/filters.php +++ b/bin/filters.php @@ -117,6 +117,14 @@ function filterBestRated($origGames, $limit) return array_slice($games, 0, $limit); } +function filterBestRatedGames($origGames, $limit) +{ + $noApps = filterByGenre($origGames, 'App', true); + $noAppsNoEmus = filterByGenre($noApps, 'Emulator', true); + + return filterBestRated($noAppsNoEmus, $limit); +} + function filterMostDownloaded($origGames, $limit) { $games = array_values($origGames);