Support game files without thumbnails
authorChristian Weiske <cweiske@cweiske.de>
Sun, 10 May 2020 18:22:03 +0000 (20:22 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 10 May 2020 18:22:03 +0000 (20:22 +0200)
bin/import-game-data.php

index 283c06b..14996c4 100755 (executable)
@@ -419,7 +419,7 @@ function buildDetails($game)
             $mediaTiles[] = [
                 'type' => 'image',
                 'urls' => [
-                    'thumbnail' => $medium->thumb,
+                    'thumbnail' => $medium->thumb ?? $medium->url,
                     'full'      => $medium->url,
                 ],
             ];