From: Christian Weiske Date: Sat, 22 Oct 2022 10:00:33 +0000 (+0200) Subject: Ignore broken releases X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/19ea6b749f66d07ca66a1034c5f428f8dc482e14 Ignore broken releases Related: https://github.com/ouya-saviors/ouya-game-data/issues/159 --- diff --git a/bin/import-game-data.php b/bin/import-game-data.php index 3380d6a..4495dc3 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -890,6 +890,9 @@ function addMissingGameProperties($game) $firstReleaseTimestamp = null; $latestReleaseTimestamp = 0; foreach ($game->releases as $release) { + if (isset($release->broken) && $release->broken) { + continue; + } if (!isset($release->publicSize)) { $release->publicSize = 0; }