Skip to main content

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)

Metadata

Release files for m4b-merge 0.3.4.1

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

Source distribution (sdist)

Source distribution for m4b-merge 0.3.4.1
File Size Uploaded
m4b-merge-0.3.4.1.tar.gz 23.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for m4b-merge 0.3.4.1
File Interpreter ABI Platform
m4b_merge-0.3.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 47.2 kB

Release files / m4b-merge-0.3.4.1.tar.gz

Download URL m4b-merge-0.3.4.1.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
97a930b7602961d72898d682a683b15917ef8f599047f04fb7f61cb5b29a2194
BLAKE2b-256 checksum
How to use checksums
47d07340f9844a65f02f45ed12d748a6e4b3827bd0e7bf3a288f96b6a831c0d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / m4b_merge-0.3.4.1-py3-none-any.whl

Download URL m4b_merge-0.3.4.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d22803857f4e5310a7937653b7ca1445bef502527c8af1a09c0673538bfcd5e
BLAKE2b-256 checksum
How to use checksums
0a49c6be54d75725c0affa374ff712f5d97c3cf220c3d61b691a27a5c8ee5531
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

0.3.5

2 release files

This release

0.3.4.1 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

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