mirror of
https://github.com/YGGverse/gemini-dl.git
synced 2026-03-31 17:15:32 +00:00
print queue progress
This commit is contained in:
parent
ed21836f13
commit
f19ab43390
1 changed files with 30 additions and 0 deletions
|
|
@ -193,6 +193,21 @@ class Cli
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
{
|
||||||
|
$count = count($this->source); // calculate shared value once
|
||||||
|
|
||||||
|
print(
|
||||||
|
Message::yellow(
|
||||||
|
sprintf(
|
||||||
|
_("\tleft: %d/%d total (%d processed)"),
|
||||||
|
$count - $offset,
|
||||||
|
$count,
|
||||||
|
$offset
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Crawl next address...
|
// Crawl next address...
|
||||||
if ($this->option->crawl)
|
if ($this->option->crawl)
|
||||||
{
|
{
|
||||||
|
|
@ -309,6 +324,21 @@ class Cli
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
{
|
||||||
|
$count = count($this->source); // calculate shared value once
|
||||||
|
|
||||||
|
print(
|
||||||
|
Message::magenta(
|
||||||
|
sprintf(
|
||||||
|
_("\tleft: %d/%d total (%d processed)"),
|
||||||
|
$count - $offset,
|
||||||
|
$count,
|
||||||
|
$offset
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Set data mode
|
// Set data mode
|
||||||
$raw = ($this->option->raw || !str_contains((string) $response->getMeta(), 'text/gemini'));
|
$raw = ($this->option->raw || !str_contains((string) $response->getMeta(), 'text/gemini'));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue