feat(downloader): add PDF extras and cover art download (closes #7)
Add accompanying file download pipeline: PDF extras via new client.fetch_pdf_extra_url() endpoint, cover art from existing book.cover_url, both using streaming .partial -> atomic rename pattern. Config toggles (download_extras, download_covers) control which files are downloaded. Failures log warnings only -- never mark a book as failed. Wired into all 3 format strategy paths in download_book(). Output structure: books with extras create subdirectories containing audio + PDFs + cover; books without extras output audio as leaf file. 12 new tests (134 total), 11/11 acceptance criteria met.
This commit is contained in:
1 parent
2a0b43aca9
commit
aceaece504
8 files changed
+639
-3
No files matched your search
@@ -141,6 +141,7 @@ def run(
|
||||
output_base=config.output_dir,
|
||||
history=history,
|
||||
format_strategy=config.format,
|
||||
config=config,
|
||||
)
|
||||
if result is None:
|
||||
console.print(f" [yellow]⏭ Skipped[/yellow]")
|
||||
|
||||
Reference in new issue
Block a user