feat(config): add rename_chapters field, CLI flag, and 3-layer resolution

Add rename_chapters boolean config field following the established
pattern from download_extras/download_covers. Config defaults to
True; YAML supports explicit false; --rename-chapters CLI flag forces
True overriding config. Threaded through sync_run() with resolved value
ready for pipeline wiring in slice 3.

Closes #33
This commit is contained in:
AlexKucera committed 2026-06-05 17:15:16 +02:00
1 parent b6df4e3a9b
commit af5ad4953c
11 files changed
+175 -2

No files matched your search

+5
View File
@@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
numeric prefix, auto zero-padding, null/blank title fallback, sanitization
via existing `sanitize()`. 11 tests. Closes #32.
- **config:** Add `rename_chapters` boolean field to Config dataclass with default
`True`. Read from YAML config, threaded through CLI (`--rename-chapters` flag)
and `sync_run()` resolution (CLI True → config value). 5 new tests, 223 total.
Closes #33.
### Refactored
- **session:** Rename LibroFmClient → LibroFmSession, relocate to