Skip to main content

Build Status

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.

Installation

You should have Python 3.6+ installed.

pip install audiobook-tags

Usage

audiobook-tags [-h] [--encoding ENCODING] [--extension EXTENSION] [--set-tag [SET_TAG ...]] [--track-num TRACK_NUM] [--title-prefix TITLE_PREFIX] [--dry] [folder]

Fixes mp3 tags for iOS audiobooks.

positional arguments:
  folder                Folder to process, do not add file name.

options:
  -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 including dot, for example `.mp3`.
  --set-tag [SET_TAG ...]
                        Change mp3 tag to specified string. Format "tag-name/tag-value".
  --track-num TRACK_NUM
                        Sort files and set mp3 tag `track_num`: TRACK_NUM=`name` - sort by names; TRACK_NUM=`tag-<TAG>` - sort by mp3 tag with name <TAG>.
  --title-prefix TITLE_PREFIX
                        Prefix each file title with the track number for the file.
  --dry                 Dry run without changing files.

Example:

audiobook-tags --set-tag="album_artist/Юрий Заборовский (Ардис)" --track-num="name"
  • Convers all .mp3 files in current folder and subfolders
  • fix encoding supposing that original encoding was Windows 1251
  • change tag album artist.
  • set track_num mp3 tag to file number as ordered by file name

Development

OS Dependencies

MacOS

brew update brew install libmagic

Python dependencies

Note the dot before ./activate.sh:

. ./activate.sh

Metadata

Release files for audiobook-tags 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audiobook-tags 1.0.0
File Size Uploaded Provenance Actions
audiobook-tags-1.0.0.tar.gz 3.2 kB Without provenance Details for audiobook-tags-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for audiobook-tags 1.0.0
File Interpreter ABI Platform Actions
audiobook_tags-1.0.0-py3-none-any.whl Python 3 none any Details for audiobook_tags-1.0.0-py3-none-any.whl

Total release size: 6.6 kB

Release files / audiobook-tags-1.0.0.tar.gz

Download URL audiobook-tags-1.0.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d696df90f61cc2946435e9ff4e2913e3dd7cd4ceed4a382de69931380f3648a5
BLAKE2b-256 checksum
How to use checksums
fff1bf0bdd6479848e012225fc938b7690baa85fa5e5c838d7ba40d04f770576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / audiobook_tags-1.0.0-py3-none-any.whl

Download URL audiobook_tags-1.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dca7e3b45205e1815084e1e93f7fa51fa6dbd24d2803c0debfb778b3e3ca393a
BLAKE2b-256 checksum
How to use checksums
969b317b97b329fa8d2cf7533460e8f44915392b3df951b27dc12d23dfe47e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for audiobook-tags 1.0.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page