Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-24-2025, 08:35 AM   #1
PetrusV
Enthusiast
PetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tonguePetrusV can tie a knot in a cherry stem with his or her tongue
 
Posts: 28
Karma: 22198
Join Date: Nov 2017
Device: iphone, ipad, android phone, android tablet, pc, kindle
Import Audiobooks Metadata (Import Plugin)

I couldn't find a plugin that could handle all the metadata features I wanted for audiobooks, so I expanded on Artur Kupiec's excellent audiobook metadata plugin (https://github.com/akupiec/calibre_p...obook-metadata) and created a companion GUI plugin for reprocessing existing audiobooks.

Import Audiobooks Metadata (Import Plugin)

Description: This expanded version of the original plugin automatically imports metadata when adding new audiobooks to Calibre.

Version: 0.2.7

Released: January 09, 2025

Minimum Calibre Version:
7.0

Platforms: Windows, Linux, macOS

Author: Artur Kupiec, expanded by Petrus Vermaak

History: Initial release for the expanded version.

Supported Formats: m4b, m4a, mp3, ogg, opus, flac, wma, mp4, aiff

Features:
  1. Automatically processes metadata when adding new audiobooks
  2. Extracts and imports:
    • Title (removes common suffixes like "Unabridged" and "Audiobook")
    • Authors (combines album artist, artist, and composer fields intelligently)
    • Publication year
    • Cover image
    • Copyright information
    • Genre tags
    • Comments/description
    • Duration (requires custom column setup)
  3. Robust error handling and validation
  4. Fallback to ffprobe for duration if the primary method fails
  5. Prevents duplicate author entries while maintaining proper order


Important Note: To use the duration feature, you must first create a custom column in Calibre:
  1. Go to Preferences → Add your own columns
  2. Create a new custom column with the following settings:
    • Type: Text
    • Heading: Duration
    • Column name: duration
    • Description: Audiobook duration in HH:MM:SS format

The plugin will then automatically populate this column with the audiobook's duration when importing or updating metadata.

The plugin handles errors gracefully and provide feedback if any metadata fields couldn't be read or if files are damaged/unsupported. The GUI plugin particularly makes it easy to batch update metadata and see exactly what was updated or if any issues occurred during processing.

Support the Development
If you’ve found this plugin helpful and would like to support its development, consider buying me a coffee! Your support helps keep this project going and encourages future updates.
Donate via PayPal
Thank you for your generosity!
Attached Files
File Type: zip audiobook_metadata_import_0.2.7.zip (55.6 KB, 2849 views)
PetrusV is offline   Reply With Quote
Old 02-21-2025, 12:42 PM   #2
fidvo
Addict
fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.
 
Posts: 307
Karma: 1599870
Join Date: Jun 2012
Device: none
Thanks for this plugin! I've been looking for something like this since an older similar plugin stopped working. I can't believe I didn't see this until now.

I do have a couple of ideas that might improve it. They're not really bugs, because there might be a reason why you did it this way, so let's just call them suggestions.

I took a look at the source code and even made these changes in my personal copy of the plugin, so I know they're easy to implement if you think they're worthwhile.

1. Currently, Album takes precedence over Title when populating the Title field in Calibre. To me it seems it should be the other way around.

If you want to change it, simply swapping the order of tag.album and tag.title in the first line of the get_title_from_tag function would make Title take precedence.

2. Album and Track seem like a good match for Series and Series index in Calibre.

A handful of additional lines in the get_metadata function would take care of this.

Thanks again!
fidvo is offline   Reply With Quote
Advert
Reply

Tags
audiobook, m4a, m4b, metadata, mp3

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Author And Title From Filename & Import Other Tags And Cover From File DazJWood Library Management 25 10-06-2021 10:18 AM
Export/Import all Calibre data - import error IanKBrown Calibre 5 02-15-2017 08:32 PM
Import on Filename changes mid import due to book error Vortex Calibre 3 12-05-2014 11:49 AM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 03:00 PM
Run plugin before import dremo Plugins 6 01-09-2009 12:40 PM


All times are GMT -4. The time now is 01:30 AM.


MobileRead.com is a privately owned, operated and funded community.