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.
2.4 KiB
2.4 KiB
Agent Instructions
Session Logs
Session logs are written to docs/devlog/ after each completed task, issue fix, or milestone.
They capture what was done, decisions & rationale, gotchas & fixes, and next steps. Before starting a new session, read the previous session logs.
| Date | Type | File | Summary |
|---|---|---|---|
| 2026-06-03 | slice | 20260603-slice-5-accompanying-files-and-output-structure-issue7_log.md | Issue #7 Complete: PDF extras + cover art download with config toggles, .partial→atomic rename, non-critical failure handling, output structure verification. 12 new tests, 134 total · 11/11 AC |
| 2026-06-03 | slice | 20260603-slice-6-mp3-fallback-issue6_log.md | Issue #6 Complete: MP3 fallback pipeline — manifest fetch, ZIP download+extract+resume, format strategy selector (m4b_mp3_fallback/mp3_only/m4b_only), --limit CLI flag. 12 new tests, 122 total · 11/11 AC |
| 2026-06-03 | issue | 20260603-slice-3b-live-testing-fixes-issue5_log.md | Issue #5 Live Fixes: 4 critical API-shape bugs found & fixed (audiobooks key, m4b_url key, nested narrators, ISBN int/str). Download loop wired. --verbose flag. 109 tests, 6 books downloaded (~2.9 GB) · 11/11 AC |
| 2026-06-03 | slice | 20260603-slice-3b-m4b-download-pipeline-issue5_log.md | Issue #5 TDD: M4B download pipeline — client endpoint, streaming downloader with resume, path integration, history post-download, CLI orchestration. 11 new tests, 108 total · 11/11 AC |
| 2026-06-03 | slice | 20260603-slice-3a-path-resolution-and-sanitization-issue4_log.md | Issue #4 Complete: Path resolution + sanitization + Book model + custom patterns. 56 new tests, 97 total · 16/16 AC |
| 2026-06-03 | issue | 20260603-project-scaffolding-and-config-module-issue2_log.md | Issue #2 Complete: pyproject.toml + venv + config module (load/merge/validate) + 25 tests. 11/11 AC met |