Skip to main content

A tool to standardize audiobook files into single m4b files with clean metadata based on Audible and chapters.

Project description

Functionality

The steps accomplished by using this tool are as follows:

  • Easy batch inputs via -i folder1/ folder2/* file.mp3 etc.
  • Only user input required is one ASIN per book.
  • Converts mp3(s) into single m4b files
    • Matches existing bitrate and samplerate for target file.
    • Standardizes chapter names, like 'Chapter 1'.
  • Merges or edits m4a/m4b into single m4b file, without re-converting.
  • Moves input file/folder to done folder when processed.

Audible data features:

  • Title, author(s), narrator(s), series, release year, description
    • For generating folder structure
    • For seeding M4b metadata fields
  • Chapters (title and length) used for m4b/m4a inputs.

CLI usage

usage: m4b-merge [-h] -i INPUTS [INPUTS ...] [--log_level LOG_LEVEL]

m4b-merge cli

optional arguments:
  -h, --help            show this help message and exit
  -i INPUTS [INPUTS ...], --inputs INPUTS [INPUTS ...]
                        Input paths to process
  --log_level LOG_LEVEL
                        Set logging level
  • Check the user editable variables in config.py, and see if there's anything you need to change.
  • On first run, you will be prompted to signin to Audible. This is a one-time process that will be saved to your system's relevant config folder, under m4b-merge.

Module usage

If you are a developer wanting to use this in a project, you can import the modules as so: from m4b_merge import audible_helper, config, helpers, m4b_helper

And then creating the objects you need (from audible_helper.BookData(asin) and m4b_helper.M4bMerge(input_data, metadata)) You can see more usage examples in the sister project, Bragi Books

The parser function in audible_helper.BookData returns some extra data not used in the CLI here. This is a list of all data returned:

  • Title
  • Short Summary
  • Long Summary
  • Authors
  • Narrators
  • Series
  • Release Date
  • Publisher
  • Language
  • Runtime in minutes
  • Format type (abridged, unabridged, other)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m4b-merge-0.3.4.2.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

m4b_merge-0.3.4.2-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file m4b-merge-0.3.4.2.tar.gz.

File metadata

  • Download URL: m4b-merge-0.3.4.2.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for m4b-merge-0.3.4.2.tar.gz
Algorithm Hash digest
SHA256 b1f64c69b7be54bbea7505f83d480cc34a6815ccb4e01d5eb9a5c0eb4341fde3
MD5 e6d92f338d5f0fb7fffb5cea637442a8
BLAKE2b-256 5a85429a633212a0eed789a527e1924f5c96c07e7b011f9b41127cef412ca694

See more details on using hashes here.

File details

Details for the file m4b_merge-0.3.4.2-py3-none-any.whl.

File metadata

  • Download URL: m4b_merge-0.3.4.2-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for m4b_merge-0.3.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b25ae9f538b42cdba5bd9ffecd259aad76d0c046e7ca11e1985aecfda55ae77
MD5 592806a679654da9fa4f480f923eabd4
BLAKE2b-256 f2295646af7537c5b633e9eb378e1a9f66200e7c1ff69bd388b727f914b49969

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page