Converts mp3 files tages to use in iTunes/iPhone audiobooks. Fixes sort order. Supports cyrillic.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
itunes-audiobook-from-mp3.py

README.md

iTunes audiobooks from mp3

Converts mp3 files tages to use in iTunes/iPhone audiobooks.

Fixes sort order.

Supports cyrillic.

Details in my blog's article.

MacOS

brew update brew install libmagic

Python3

pip install eyed3

Usage

usage: ios-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_num as 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:

ios-audiobook-from-mp3 --fix --set-tag="album_artist/Юрий Заборовский (Ардис)"

Convers all .mp3 files in current folder and subfolders, fix encoding supposing that original encoding was Windows 1251, and change tag album artist. Also it will set track_num mp3 tag to file number as ordered by file name.