Audiobooks from mp3 with broken tags
Fix mp3 files tags to convert them into iTunes/iPhone audiobooks..
- Fixes sort order.
- Supports messed encoding like cyrillic Win1251.
Details in my blog's article.
MacOS
brew update brew install libmagic
Python dependencies
Note the dot before ./activate.sh:
. ./activate.sh
Usage
python src/itunes_audiobook_from_mp3.py
[folder]
[-h]
[--encoding ENCODING]
[--extension EXTENSION]
[--set-tag [SET_TAG [SET_TAG ...]]]
[--track-num TRACK_NUM] [--fix FIX]
[--dry DRY]
positional arguments:
- folder Folder to process
optional arguments:
- -h, --help show this help message and exit
- --encoding ENCODING mp3 tags encoding. "none" if you do not need mp3 tags encoding fix.
- --extension EXTENSION Files extension.
- --set-tag [SET_TAG [SET_TAG ...]] Change mp3 tag to specified string. Format "tag- name/tag-value".
- --track-num TRACK_NUM
Set mp3 tag
track_numas specified. - - file number for files sorted by names. Use none if you do not want to set this tag. - --fix Process and fix files.
- --dry DRY Just dry run without files fix.
For example:
python src/itunes_audiobook_from_mp3 --fix --set-tag="album_artist/Юрий Заборовский (Ардис)"
- Convers all
.mp3files in current folder and subfolders, fix encoding supposing - that original encoding was
Windows 1251, and change tag album artist. - Also it will set
track_nummp3 tag to file number as ordered by file name.
Metadata
Release files for audiobook-tags 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| audiobook-tags-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for audiobook-tags-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| audiobook_tags-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for audiobook_tags-0.1.0-py3-none-any.whl |
Total release size: 6.4 kB
Security for audiobook-tags 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.