lots of progress
This commit is contained in:
@@ -40,12 +40,7 @@ class BuildGameLibrary extends Command
|
||||
$startTimestamp = strtotime("{$year}-01-01");
|
||||
$endTimestamp = strtotime("{$year}-12-31");
|
||||
|
||||
// Generate a random query to get diverse results
|
||||
$query = $this->generateRandomQuery();
|
||||
|
||||
$this->info("Searching for games from {$year} with query: {$query}");
|
||||
|
||||
$games = $igdbService->get();
|
||||
$games = $igdbService->get($limit);
|
||||
|
||||
if (empty($games)) {
|
||||
$this->warn("No games found for this batch. Moving to next batch...");
|
||||
@@ -66,6 +61,7 @@ class BuildGameLibrary extends Command
|
||||
$totalAdded++;
|
||||
} catch (\Exception $e) {
|
||||
$this->warn("\nFailed to process game: {$e->getMessage()}");
|
||||
dd($e);
|
||||
$totalSkipped++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user