feat(downloader): add rename_chapters for MP3 chapter title renaming
Add standalone rename_chapters(output_dir, tracks, book_title) -> int function that renames extracted MP3 files to include chapter titles from the Libro.fm download manifest. Features: natural sort by numeric prefix, auto zero-padding from track count, null/blank title fallback to "Chapter N", sanitization via existing sanitize(). 11 tests, all passing. Closes #32. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c96dd3cce3
commit
b6df4e3a9b
5 files changed
+327
-1
No files matched your search
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
8:6af|## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- **downloader:** Add `rename_chapters()` function to rename extracted MP3
|
||||
files with chapter titles from the download manifest. Natural sort by
|
||||
numeric prefix, auto zero-padding, null/blank title fallback, sanitization
|
||||
via existing `sanitize()`. 11 tests. Closes #32.
|
||||
|
||||
### Refactored
|
||||
|
||||
|
||||
Reference in new issue
Block a user