mirror of
https://github.com/YGGverse/gemini-dl.git
synced 2026-03-31 09:05:31 +00:00
remove incorrect totals from dump
This commit is contained in:
parent
0f1cc4f576
commit
090c930c7b
1 changed files with 0 additions and 23 deletions
|
|
@ -16,8 +16,6 @@ use \Yggverse\Net\Address;
|
||||||
class Cli
|
class Cli
|
||||||
{
|
{
|
||||||
// Init totals
|
// Init totals
|
||||||
public int $skip = 0;
|
|
||||||
public int $fail = 0;
|
|
||||||
public int $save = 0;
|
public int $save = 0;
|
||||||
public int $size = 0;
|
public int $size = 0;
|
||||||
public float $time = 0;
|
public float $time = 0;
|
||||||
|
|
@ -202,9 +200,6 @@ class Cli
|
||||||
// Parse gemtext
|
// Parse gemtext
|
||||||
if (!$raw && $this->option->crawl)
|
if (!$raw && $this->option->crawl)
|
||||||
{
|
{
|
||||||
// Reset skipped links
|
|
||||||
$skip = 0;
|
|
||||||
|
|
||||||
// Parse gemtext content
|
// Parse gemtext content
|
||||||
$document = new Document(
|
$document = new Document(
|
||||||
$response->getBody()
|
$response->getBody()
|
||||||
|
|
@ -226,10 +221,6 @@ class Cli
|
||||||
// Check link match common source rules, @TODO --external links
|
// Check link match common source rules, @TODO --external links
|
||||||
if (!$this->_source($address->get()) || $address->getHost() != $source->getHost())
|
if (!$this->_source($address->get()) || $address->getHost() != $source->getHost())
|
||||||
{
|
{
|
||||||
$skip++;
|
|
||||||
|
|
||||||
$this->skip += $skip;
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -286,8 +277,6 @@ class Cli
|
||||||
_("\tfail: ") . $filename
|
_("\tfail: ") . $filename
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->fail++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Crawl mode enabled
|
// Crawl mode enabled
|
||||||
|
|
@ -367,18 +356,6 @@ class Cli
|
||||||
$this->save
|
$this->save
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
Message::magenta(
|
|
||||||
sprintf(
|
|
||||||
_("\tskip: %d"),
|
|
||||||
$this->skip
|
|
||||||
)
|
|
||||||
),
|
|
||||||
Message::magenta(
|
|
||||||
sprintf(
|
|
||||||
_("\tfail: %d"),
|
|
||||||
$this->fail
|
|
||||||
)
|
|
||||||
),
|
|
||||||
Message::magenta(
|
Message::magenta(
|
||||||
sprintf(
|
sprintf(
|
||||||
_("\tsize: %d"),
|
_("\tsize: %d"),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue