From e0094db78d60060795cff525620f4abcba05283e Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Thu, 18 Apr 2019 20:30:02 +0700 Subject: [PATCH] Remove debugging limits --- Source/Itch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Itch.php b/Source/Itch.php index 074b5f0..47560fa 100644 --- a/Source/Itch.php +++ b/Source/Itch.php @@ -26,7 +26,7 @@ class Itch extends Source { public $queue = []; public $games = []; protected function parse_tag($url) { - $max_pages = 1; // load 30*4 = 120 latest games + $max_pages = 4; // load 30*4 = 120 latest games for ($i = 1; $i <= $max_pages; $i++) { $cururl = $url.'?format=json&page='.$i; $text = $this->get_json($cururl); @@ -56,8 +56,8 @@ class Itch extends Source { $this->output .= $this->page($argv[2])->print(); } else { $this->parse_tag("https://itch.io/games/newest/tag-text-based"); - //$this->parse_tag("https://itch.io/games/newest/tag-twine"); - //$this->parse_tag("https://itch.io/games/newest/tag-interactive-fiction"); + $this->parse_tag("https://itch.io/games/newest/tag-twine"); + $this->parse_tag("https://itch.io/games/newest/tag-interactive-fiction"); $this->queue = array_unique($this->queue); foreach ($this->queue as $game) { echo 'Loading details for '.$game->title.'…'.PHP_EOL;