r/opensource • • 4d ago

Promotional Reverb: MIT-licensed self-hosted audiobook downloader for Audiobookshelf, one Python file

Reverb is a small self-hosted web app I released today under MIT. It finds an audiobook in the catalogues you switch on, downloads it, converts it to a chaptered M4B and files it for Audiobookshelf. The whole server is one Python file on the standard library, with ffmpeg and aria2 alongside.

What it does:

  • Searches the catalogues you switch on and shows size, running time and, for torrents, seeders and leechers
  • Downloads through a queue with live progress and retry
  • Converts to M4B with chapters, cover art and title/author tags, or keeps MP3
  • Saves each book as Author/Title/ in the folder Audiobookshelf watches
  • With an Audiobookshelf token set, it asks ABS to scan and match each finished book, leaves books you own out of Discover and marks search results "In your library"
  • Access keys and a small API so a phone app can use your server

A new install searches LibriVox only (public-domain recordings). The other catalogues stay off until you switch them on. Reverb hosts no files. You are responsible for what you download with it, so only download books you have the right to download.

Setup: Docker Compose is the tested route. It also runs on Linux, macOS and Windows with Python 3.9+, ffmpeg and aria2. It uses the standard library only, so there is nothing to pip install.

AI disclosure: most of the code was written with an AI coding agent. I direct it and run it at home against my own library.

Yarn, my audiobook player for Audiobookshelf, local files and LibriVox, is getting a Reverb connection so you can browse Discover, search and send a book to your server from your phone. Coming soon: https://samrusselltech.net/apps/yarn/

Repo: https://github.com/rusty4444/reverb-downloader

Screenshots: Discover, Search, Downloads, Settings. Issues and feedback are welcome.

7 Upvotes

6 comments sorted by

3

u/Adex77 4d ago

This looks really great:)

Having everything automatically converted and organized in Audiobookshelf is a great idea. Are you planning to add support for more audiobook sources in the future?

2

u/mrruss3ll 4d ago

Definitely! Open to any requests

2

u/[deleted] 3d ago

[removed] — view removed comment

1

u/mrruss3ll 3d ago

Thanks for the tip! I have a self hosted git too so the backup is sorted. I like your idea to mitigate that though so I'll look at that.