Plex audiobook metadata agent powered by the AudiobookDB catalog, with direct ASIN and native-ID matching.
AudiobookDB Agent is a Plex metadata agent for audiobook libraries that sources everything — books, releases, and people — from the AudiobookDB public API (https://api.audiobookdb.org/api). It is the successor to the Audnexus agent and installs alongside it: it registers under its own plug-in identifier (com.plexapp.agents.audiobookdb), so the legacy Audnexus.bundle can stay installed. Each library keeps using whichever agent is selected for it until you switch it over, and old pinned Audnexus IDs migrate safely (see Migrating from Audnexus).
What sets it apart:
- AudiobookDB book, release, and person metadata — titles, summaries, studios, ratings, genres, moods, posters, and native IDs.
- Direct matching: drop an Audible ASIN (or an AudiobookDB native ID) into the manual search field, and the agent resolves it straight to a score-100 result, skipping free-text search.
- A safe migration path: libraries switched from Audnexus keep their pinned
ASIN/ASIN_regionIDs working and are re-pinned to AudiobookDB's native ID form on the next refresh.
- Install
- Usage
- Configuration
- Quick match
- API details
- Migrating from Audnexus
- Source installation
- Contributing
- Acknowledgements
- License
Prerequisite: a running Plex Media Server that still provides the legacy agent system. On Plex Media Server 1.43+ legacy agents are hidden during library setup — enable Show legacy agents during library setup in the server's library settings to pick this agent. Note that Plex has announced the legacy agent system is being removed from new PMS releases in 2026; this bundle requires it.
Release (recommended):
- Download
AudiobookDB.bundle.zipfrom the releases page. - Unzip it.
- Place the
AudiobookDB.bundlefolder in your PlexPlug-insdirectory. - Restart Plex.
The installed bundle should look like this (only Contents/ matters; Info.plist inside it declares the agent):
Plug-ins/
└── AudiobookDB.bundle/
└── Contents/
├── Code/
│ ├── __init__.py # Album + Artist agents
│ ├── _version.py
│ ├── api_client.py
│ ├── logging.py
│ ├── metadata_ids.py
│ ├── search_tools.py
│ └── update_tools.py
├── DefaultPrefs.json
└── Info.plist
After a restart, AudiobookDB Agent appears in the agent picker for audiobook libraries.
Source installation is available if you prefer deploying from the repository.
- Configure your personal key before full-library matching: generate your personal AudiobookDB API key and add it in Plex (steps below). Anonymous access is intended for browsing/searching, not full-library enrichment.
- Open the Edit Library dialog for a Music library that holds your audiobooks in Plex (or create a new Music library).
- On the Advanced tab, choose AudiobookDB Agent from the Agent drop-down. Existing libraries keep their current agent until you switch it here.
- Optionally set the other preferences below, then run a refresh.
A refresh populates from AudiobookDB: books appear as albums — title, sort title, summary, studio, original release date, rating, genres, moods/styles, poster, and the native ID; authors appear as artists — name, sort title, summary, genres, poster, and native ID. Narrators are stored as Style tags, not as separate profiles. Series information is stored as Mood tags. An experimental preference can also contribute series names as collections.
Album title searches keep punctuation and accents. Without a matched parent author ID, the agent tries the title and author name first. It retries by title alone if no filtered result is usable. A matched parent author's native person ID counts as positive evidence even if the author's name differs. The agent skips results that conflict with an explicit book number during automatic matching. Use Fix Match to choose a result manually or change an existing pin.
A title match pins the book, not a specific recording. If the book has one visible release, Fix Match can show its narrator and a refresh can use its release metadata. For multiple releases, Fix Match offers up to five selectable recording results and no work-only choice; a book without a visible release is the only case where the work itself is offered. Available local runtime and language guide their ordering, but the agent does not automatically select an edition. Results include cover and year information where known; recording rows whose edition labels match gain the publisher (or release year) so two editions stay distinguishable.
Preferences are set in the Plex Web App under Settings → Server → Agents: choose the agent, then click the gear icon to its right (see Plex's Agents article).
To get a personal key, sign in at audiobookdb.org, open your account settings page (/users/{your-id}/edit), and use the API Key card's Generate API key button. The full key is shown only once; copy it and store it securely — do not share or publish it. The Key ID is not the secret key. In the agent's Plex preferences, enter the full key in AudiobookDB API key (optional, raises rate limits), then save.
| Preference | Default | Description |
|---|---|---|
api_key |
(empty) | Enter your personal AudiobookDB API key for full-library matching. |
keep_existing_genres |
false |
Keep existing genres in place. |
store_author_as_mood |
true |
Append authors as Mood tags. |
sort_author_by_last_name |
true |
Sort artist by name [Last, First]. |
simplify_title |
false |
Simplify book titles (remove subtitle, series part, (un)abridged, etc.). |
use_chapter_titles |
false |
Opt in to chapter titles for eligible local tracks. See the conditions below. |
store_series_as_collection |
false |
Experimentally contribute series names as collections. See the limitations below. |
logging_level |
WARN |
Level of plugin logging (DEBUG, INFO, WARN, ERROR). |
use_chapter_titles replaces only empty titles or generic chapter, track, or part titles. It requires multiple distinct local tracks and a verified release with a complete chapter sequence and matching timings. It cannot add embedded chapters to an M4B file.
store_series_as_collection contributes series names without removing existing tags or collections. Series Mood tags remain in place. Plex server import and filtering of these collections have not been live-verified, so this preference is experimental.
Album updates read every Narrator credit from the selected release
(release.people) and write one Style tag per distinct narrator name. The
complete credit list is retained with each credit's stable person.id when the
catalog supplies one; tags are display text only. Two different people who
share a display name produce two credits but one Style tag, because Plex
deduplicates identical tag text. A forced refresh clears and re-adds narrator
styles from the current release detail, so a catalog rename is reflected on the
next forced update.
Fix Match shows every narrator entry present in a search hit and the complete
narrator list of each release row. When the complete list does not fit the
description budget, the names that fit are followed by an explicit +N
remaining count; the full list stays in the result data. Book-level search hits
(the recorded case) carry authors only; the agent does not claim narrator
completeness or borrow narrators from another release.
Clickable narrator profiles (portrait, bio, discography) are not available through the Plex legacy music model: an album exposes only the album artist, and music collections have no details page. The upstream prerequisite is a Plex model/client change that exposes additional, client-rendered per-album people; no plugin-side change closes that gap. Narrator discovery therefore stops at Style tags and Fix Match display.
Album updates use a release pinned in the stored ID, a release matched by an
ASIN resolve, or the only visible release. An unpinned book with multiple
releases stays work-only; Fix Match offers up to five recording rows, ranked
by local runtime and language, and does not select an edition automatically. Accurate matches come from an ASIN in the filename
or manual search field, or from an explicit book.<id>.release.<id> ID.
Narrators are taken only from the selected release, never aggregated across
releases.
Enter an ASIN in the manual search field and the agent resolves it directly, skipping normal search. For automatic album matching, the agent also checks the scanner filename and all file parts supplied by Plex for ASINs. If those hints contain conflicting IDs, the agent does not select a recording by ASIN. Manual input overrides file hints:
B0XXXXXXXX— an Audible ASIN, resolved throughGET /audiobooks/external/audible/{ASIN}(albums) orGET /people?external=Audible:{ASIN}(artists). A book ASIN resolves to a single title, but a person ASIN shared by multiple people can yield several choices — use Fix Match (or enter the person ID manually) to pick one.- Native IDs
book.<id>[.release.<id>]andperson.<id>are also accepted as manual search input; they are validated against the corresponding detail endpoint before a score-100 result is appended.
- Base URL:
https://api.audiobookdb.org/api— see the API documentation. - Album titles shorter than 3 characters need an author credit. Without a key, the agent obtains the CSRF cookie needed for text search.
- Calls make up to 4 total attempts.
Retry-Afterdelays are capped at 60 seconds; the client does not guarantee honoring a longer server delay. Anonymous text search is cheaper and bounded: one prime request, one search POST, and at most one re-prime plus one retry after a rejected token. - The agent sends a configured API key only to the AudiobookDB API origin. If the key field is empty, the agent makes anonymous requests. Full-library matching still requires a personal key.
- Your Plex agent and any other AudiobookDB client using the same key share that account's allowance. Short-term request throttling and daily endpoint cost-unit budgets are separate; costs vary by endpoint, and there is no fixed books-per-day or requests-per-day equivalence. See the live access tiers and limits and endpoint costs rather than relying on static quota figures.
- A missing/invalid/expired/suspended key, a 429 throttle, or network/server errors are not evidence that an audiobook is absent from the catalog. The agent does not provide credential validation, a daily-budget stop, or automatic pause/resume. If a refresh fails, check the key and Plex preference; for throttling or exhausted daily allowance, wait for capacity to return before using Plex's refresh control. Do not immediately restart a full-library refresh. A genuine catalog miss is distinct and may require adding the external link to AudiobookDB.
- Image fetches are restricted to HTTPS on the catalog's image CDN (
cdn.audiobookdb.org); other hosts and plain HTTP are refused.
AudiobookDB.bundle declares its own plug-in identifier (com.plexapp.agents.audiobookdb), so it coexists with the legacy Audnexus.bundle — nothing needs to be removed.
Once a library is switched to this agent, its old pinned IDs (ASIN / ASIN_region) keep working: on the next refresh the agent resolves the ASIN against AudiobookDB, populates metadata, and rewrites the pinned ID to the new native form (book.<id>.release.<id> / person.<id>).
Two cases are left untouched and reported in the log:
- An ASIN not in the AudiobookDB catalog — add the external link to AudiobookDB and retry.
- An artist ASIN that resolves to multiple people — use Fix Match (or enter the person ID manually) to disambiguate before the ID can be rewritten.
Install from the develop branch
Clone the develop branch into your Plex Plug-ins directory — the Contents/ folder must sit directly inside AudiobookDB.bundle/ — then restart Plex:
cd "$HOME/Library/Application Support/Plex Media Server/Plug-ins" # replace with your Plug-ins path
git clone -b develop https://github.com/laxamentumtech/AudiobookDB.bundle.gitThere is no separate contributor guide; the essentials:
-
Work on the
developbranch. -
Tests run offline, fixture-backed, through plain
unittest:make test # Python 3, local make test-py2 # python:2.7-slim in Docker
-
The bundle targets the Python 2.7 Plex sandbox; keep new code py2/py3-compatible.
-
CI (
.github/workflows/test.yml) runs the suite on Python 3.10/3.11/3.12 plus the Docker py2 job on every push todevelopand on pull requests. Release tagsv*run both suites and packageContents/intoAudiobookDB.bundle.zip. -
See tests/COVERAGE.md for the module-to-test map.
Metadata by AudiobookDB