New Features
Live progress (LOG_PROGRESS)
New optional LOG_PROGRESS environment variable. When set to "true", the app connects to Audiobookshelf's live event feed (Socket.IO, the same one the web UI uses) and logs each conversion as it runs:
[2026-12-04 10:20:00] Starting conversion: My Audiobook
[2026-12-04 10:32:10] Encoding: My Audiobook — 25% (~36m 30s left, ETA 11:08)
[2026-12-04 10:44:25] Encoding: My Audiobook — 50% (~24m 25s left, ETA 11:08)
[2026-12-04 10:56:40] Encoding: My Audiobook — 75% (~12m 13s left, ETA 11:08)
[2026-12-04 11:09:05] Conversion completed: My Audiobook (12 file(s), mp3 @ 128k -> aac @ 64k), took 49m 5s
- Finished conversions and metadata embeds are checked and logged as soon as Audiobookshelf reports them, instead of on the next cron cycle
- Audiobookshelf only sends progress to admin users, so the feed needs an API key of an admin user (Settings → API Keys). If the login is rejected, a warning is logged once and the feed stays off
- The feed is informational only: if it's unreachable, the app keeps retrying in the background and conversions run on the cron schedule as usual
Off by default — nothing changes for existing setups.
Failure counts reset when you fix a book
Books that hit MAX_CONVERSION_FAILURES used to stay blocked until you edited failures.json and restarted the container. Now, editing a book's metadata in Audiobookshelf resets its failure count automatically on the next cycle, and a successful conversion clears it. Existing failure files keep working and are upgraded automatically.
Fixes
- API token no longer in URLs: encode requests passed the token as
?token=…, so it could end up in Audiobookshelf and reverse proxy access logs. All requests now use theAuthorizationheader - Rejected encodes no longer waste a slot: if Audiobookshelf refused to start an encode, the slot was still used up and the book counted as started. The slot now goes to the next book, and a rejection (e.g. "no audio tracks") counts as a failed attempt. Timeouts and server errors don't, so an Audiobookshelf outage can't block books
- No more overlapping cycles: a slow cycle could overlap the next scheduled one and start duplicate encodes. The next run is now skipped while one is still running
- Request timeout: a hanging Audiobookshelf request could stall the app indefinitely. Requests now time out after 60 seconds (configurable via
HTTP_TIMEOUT_MS) - Task list unavailable: if the task list couldn't be fetched, the app assumed all slots were free. It now skips that cycle instead
- More reliable outcome checks: a finished encode is now rescanned in Audiobookshelf before its result is judged, so a good encode can't look failed because Audiobookshelf still had the old file data
Thanks
Many of these fixes and the live progress idea come from @upmcplanetracker's fork (#26). Thank you for sharing it!
Full Changelog: v1.9.0...v1.10.0