fix(downloader): resolve path doubling and cover download failures
needs_subdirectory() treated always-present cover_url as a subdirectory trigger, and _resolve_output_dir() double-appended the title from resolve_path(), producing Author/Title/Title/Title.m4b paths. Cover downloads also failed silently: _download_cover() used a naked httpx.Client without Libro.fm headers (CDN rejection), and protocol-relative URLs (//cdn.libro.fm/...) caused httpx errors.
This commit is contained in:
1 parent
4aaae68a2e
commit
e2da04ad92
5 files changed
+219
-19
No files matched your search
@@ -46,6 +46,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
graceful shutdown, and integration scenarios (168 total)
|
||||
|
||||
### Fixed
|
||||
- **downloader:** Path doubling: `resolve_path()` returns Author/Title but code
|
||||
appended title again, producing nested folders like Title/Title/Title.m4b.
|
||||
Also fix cover download: add Libro.fm headers to httpx client, normalize
|
||||
protocol-relative URLs (//cdn → https://cdn)
|
||||
- Library endpoint key mismatch: API returns "audiobooks" not "books"
|
||||
- M4B endpoint key mismatch: API returns "m4b_url" not "url"
|
||||
- Narrators nested under `audiobook_info.narrators` in API response
|
||||
|
||||
Reference in new issue
Block a user