Audiobook Tag Scraper

This is my modified custom web source for mp3tag. The original authors are qudo, dano, and Romano https://community.mp3tag.de/t/ws-audible-albums-and-series/41227.

This script makes quick work of ensuring all audiobooks are tagged properly, have the correct filenames, and have the proper folder structure. This ensures consistency across Plex/Prologue, Booksonic, and other audiobook players. This is a part of a larger guide on setting up audiobooks on Plex and Booksonic https://github.com/seanap/Plex-Audiobook-Guide

This script will set the following tags:

mp3tag Tag Audible.com Value
TIT1 (CONTENTGROUP) Series, Book #
TALB (ALBUM) Title
TIT3 (SUBTITLE) Subtitle
TPE1 (ARTIST) Author, Narrator
TPE2 (ALBUMARTIST) Author
TCOM (COMPOSER) Narrator
TCON (GENRE) Genre1/Genre2
TYER (YEAR) Copyright Year*
COMM (COMMENT) Publisher's Summary (MP3)
desc (DESCRIPTION) Publisher's Summary (M4B)
TSOA (ALBUMSORT) If ALBUM only, then %Title%
If ALBUM and SUBTITLE, then %Title% - %Subtitle%
If Series, then %Series% %Series-part% - %Title%
TDRL (RELEASETIME) Audiobook Release Year
TPUB (PUBLISHER) Publisher
TCOP (COPYRIGHT) Copyright
ASIN (ASIN) Amazon Standard Identification Number
POPM (RATING WMP) Audible Rating
WOAF (WWWAUDIOFILE) Audible Album URL
stik (ITUNESMEDIATYPE) M4B Media type = Audiobook
pgap (ITUNESGAPLESS) M4B Gapless album = 1
'shwm' SHOWMOVEMENT Show Movement (M4B)
MVNM MOVEMENTNAME Series
MVIN MOVEMENT Series Book #
TXXX (SERIES)** Series
TXXX (SERIES-PART)** Series Book #
TXXX (TMP_GENRE1) Genre 1
TXXX (TMP_GENRE2) Genre 2
CoverUrl Album Cover Art
TIT2 (TITLE) Not Scraped, but used for Chapter Title
If no chapter data available set to filename

*I would prefer Original Pub. year, but Audible is really bad at providing this data
**Custom Tags used as placeholders, To view this tag Tools>Options>Tag Panel>New

To Use:

  1. Drop the Audible.com#Search by Album.src file in your %appdata%\mp3tag\data\sources folder.
  2. Load Audiobook files, and select all tracks Ctrl-a
  3. Set/fix the track numbers by hitting Ctrl-k
  4. Click the Web Sources drop down button, select Audible.com > Search by Album alt text
  5. Then set the filename and folder structure by clicking the Tag-Filename button alt text
    Format String = C:\path\to\Audiobooks\%albumartist%\%series%\%year% - %album%[ '['%series% %series-part%']']\%album% (%year%) ['['%series% %series-part%']' ]- pt$num(%track%,2)