fix(cli): remove redundant per-book verbose print in parallel downloads
The _download_fn closure printed ⬇ title, authors, and narrators for every book inside the parallel download loop. This was fine for sequential mode but became redundant when rich ProgressReporter bars were added — causing a triple-display: progress bars at 0%, then full book details with expanded narrators, then live progress updates. Progress bars already convey author+title, so the extra block was pure noise. Verbose mode still shows config, paths, auth status, summary, and the done separator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
722413a45b
commit
2a1a404350
2 files changed
+3
-4
No files matched your search
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- **cli:** Remove redundant per-book verbose print in parallel download loop.
|
||||||
|
Progress bars already show author+title; the extra `⬇ title`/authors/narrators
|
||||||
|
block caused a triple-display (bars → details → live progress). 247 tests pass.
|
||||||
- **cli:** Extract `main()` so argparse runs for installed console script.
|
- **cli:** Extract `main()` so argparse runs for installed console script.
|
||||||
`-v`/`--verbose` was dead because the entry point called `run()`
|
`-v`/`--verbose` was dead because the entry point called `run()`
|
||||||
directly, bypassing the `if __name__ == "__main__"` argparse block.
|
directly, bypassing the `if __name__ == "__main__"` argparse block.
|
||||||
|
|||||||
@@ -146,10 +146,6 @@ def run(
|
|||||||
def _make_download_fn():
|
def _make_download_fn():
|
||||||
"""Closure capturing client, config, history, reporter for each book."""
|
"""Closure capturing client, config, history, reporter for each book."""
|
||||||
def _download_fn(book: Book):
|
def _download_fn(book: Book):
|
||||||
if verbose:
|
|
||||||
console.print(f" ⬇ {book.title} [dim]({book.isbn})[/dim]")
|
|
||||||
console.print(f" authors: {', '.join(book.authors) or '?'}")
|
|
||||||
console.print(f" narrators: {', '.join(book.narrators) or '?'}")
|
|
||||||
return download_book(
|
return download_book(
|
||||||
book=book,
|
book=book,
|
||||||
client=client,
|
client=client,
|
||||||
|
|||||||
Reference in new issue
Block a user