From 2a1a40435061c4117bf1557814b7673ca5e58901 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Thu, 4 Jun 2026 11:32:16 +0200 Subject: [PATCH] fix(cli): remove redundant per-book verbose print in parallel downloads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CHANGELOG.md | 3 +++ librofm_downloader/cli.py | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce606bc..933d215 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### 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. `-v`/`--verbose` was dead because the entry point called `run()` directly, bypassing the `if __name__ == "__main__"` argparse block. diff --git a/librofm_downloader/cli.py b/librofm_downloader/cli.py index 2b80327..649f481 100644 --- a/librofm_downloader/cli.py +++ b/librofm_downloader/cli.py @@ -146,10 +146,6 @@ def run( def _make_download_fn(): """Closure capturing client, config, history, reporter for each 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( book=book, client=client,