feat(downloader): add M4B download pipeline with resume (closes #5)
Add streaming chunked M4B download via .partial files and atomic rename, resume support through HTTP Range headers, full CLI orchestration loop, --verbose flag, and config/secrets templates. Fix 4 API-shape bugs found during live testing: library endpoint returns audiobooks not books, M4B endpoint returns m4b_url not url, narrators nested under audiobook_info, and ISBN int/str type mismatch in history lookup causing re-downloads. 12 new tests (109 total). 6 books downloaded live (~2.9 GB).
This commit is contained in:
1 parent
25ee66b95d
commit
33aa80b7aa
11 files changed
+989
-15
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
# libro.fm downloader configuration
|
||||
# This file is safe to commit — no credentials here.
|
||||
# Credentials go in secrets.yaml (which is gitignored).
|
||||
|
||||
librofm:
|
||||
# Audio format preference
|
||||
# m4b_mp3_fallback — try M4B first, fall back to MP3 ZIP (default)
|
||||
# mp3_only — download MP3 ZIP only
|
||||
# m4b_only — download M4B only, skip if unavailable
|
||||
format: m4b_mp3_fallback
|
||||
|
||||
# Where downloaded audiobooks are saved
|
||||
output_dir: ./audiobooks
|
||||
|
||||
# Whether to download PDF extras when available
|
||||
download_extras: true
|
||||
|
||||
# Whether to download cover art when available
|
||||
download_covers: true
|
||||
Reference in new issue
Block a user