Archived
1
0
Fork 0

abort steam run on scraping errors

This commit is contained in:
Alexander Yakovlev 2020-03-27 10:33:25 +07:00
parent 9f052b0e0d
commit 3ea482f41f
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3

View file

@ -70,6 +70,9 @@ class Steam extends Source {
global $argv; global $argv;
if (isset($argv[2])) { if (isset($argv[2])) {
$game = $this->page($argv[2]); $game = $this->page($argv[2]);
if (!$game) {
return;
}
$this->output .= $game->print(); $this->output .= $game->print();
} else { } else {
$this->parse_tag("text-based"); $this->parse_tag("text-based");