Skip to content

Audiobookshelf

Audiobookshelf workflows are for libraries where ABS already knows the book metadata or where ABS needs to rescan after filesystem changes.

ABS organization is a full cycle: configure ABS to write metadata.json files, preview, organize, scan ABS, clean up old missing paths if ABS still reports them, and keep the undo log until the library is verified.

Audiobookshelf organize lifecycle

For the standard local-folder organize workflow, configure Audiobookshelf to store metadata alongside your books. When this ABS setting is enabled, Audiobookshelf writes a metadata.json file into each book directory whenever metadata is generated or updated. Audiobook Organizer can then use those files as the default metadata source.

Audiobookshelf setting for storing metadata.json files

After this is enabled, a book directory can look like this:

/audiobooks/The Case of Charles Dexter Ward/
metadata.json
01 - Chapter 1.mp3
02 - Chapter 2.mp3

You can preview the organizer against those metadata.json files without changing files:

Terminal window
audiobook-organizer \
--dir=/audiobooks \
--out=/organized-audiobooks \
--dry-run

Use Explore Metadata if you want to inspect what the tool reads from metadata.json before organizing.

ScenarioUse
Organize from ABS-created metadata.json filesnormal audiobook-organizer --dir=... --dry-run
Discover libraries and item countsaudiobook-organizer abs scan
Validate container-to-host path mappingabs scan --abs-path-map=... --check-files
Preview already-indexed metadataabs scan --abs-library=... --dir=...
Organize files using ABS metadataaudiobook-organizer abs organize
Trigger a scan after changesABS scan options or the local web UI ABS controls

ABS often runs in a container. The path ABS reports may be different from the host path the organizer can access.

ABS container path: /audiobooks/The Case of Charles Dexter Ward
Host path: /mnt/media/audiobooks/The Case of Charles Dexter Ward
Mapping flag: --abs-path-map="/audiobooks:/mnt/media/audiobooks"

Use --check-files before organizing so missing or incorrect mappings are visible:

Terminal window
audiobook-organizer abs scan \
--abs-url=http://localhost:13378 \
--abs-token="$ABS_TOKEN" \
--abs-library=Audiobooks \
--abs-path-map="/audiobooks:/mnt/media/audiobooks" \
--dir=/mnt/media/audiobooks \
--check-files

Preview first:

Terminal window
audiobook-organizer abs organize \
--abs-url=http://localhost:13378 \
--abs-token="$ABS_TOKEN" \
--abs-library=Audiobooks \
--abs-path-map="/audiobooks:/mnt/media/audiobooks" \
--dir=/mnt/media/audiobooks \
--out=/mnt/media/organized \
--dry-run

Then run without --dry-run after the plan looks right.

The local web UI can test the ABS URL/token, load libraries, validate path mapping, load item metadata, and trigger scans:

Terminal window
audiobook-organizer web

See Local Web UI for the browser workflow.

  • Keep --dry-run in place until path mappings are correct.
  • Use a separate output directory for the first ABS organize run.
  • Keep .abook-org.log until ABS has scanned and you have verified the library.
  • Trigger an ABS scan after filesystem moves so the server reconciles changed paths.
  • Clean up missing old-path entries if ABS still lists them after the scan.

After Organizing: Scan And Clean Up Missing Items

Section titled “After Organizing: Scan And Clean Up Missing Items”

Audiobook Organizer moves files on disk; it does not directly rewrite Audiobookshelf database rows. After a non-dry-run organization, scanning and missing-item cleanup are normal post-run steps for ABS-managed libraries.

First trigger an Audiobookshelf library scan so ABS can discover moved files. If the library still shows issues like missing books after the scan, open the ABS Issues view:

Audiobookshelf issues view showing missing books

Then use the missing-books cleanup action:

Audiobookshelf remove missing books action

If you enable the ABS library folder watcher, ABS may detect some path changes automatically. Even with the watcher enabled, a deliberate scan after filesystem moves is still the safer habit.