feat(progress): add TTY-aware download reporting (closes #8)
Rich progress bars with live %/ETA/speed/file size for interactive terminals; plain log lines for pipes/cron. Reads Content-Length from HTTP response so percentage works from first chunk onward. Per-book failure isolation prevents one bad book from stopping the batch. 18 new tests, 156 total passing.
This commit is contained in:
1 parent
aceaece504
commit
8004dcf315
8 files changed
+951
-11
No files matched your search
+3
-2
@@ -353,5 +353,6 @@ class TestCLIFormatWiring:
|
||||
)
|
||||
|
||||
captured = capsys.readouterr()
|
||||
assert "Downloaded" in captured.out
|
||||
assert "Skipped" not in captured.out or "Downloaded" in captured.out
|
||||
# Reporter now outputs "Completed:" for successful downloads (Issue #8)
|
||||
assert "Completed" in captured.out
|
||||
assert "Skipped" not in captured.out or "Completed" in captured.out
|
||||
Reference in new issue
Block a user