Back to services

BookBounty

Retrieve missing Readarr books from Library Genesis.

View alternatives to BookBounty
Suggest edit
Open source
Self-hostable
MPL-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

BookBounty is an open-source tool by TheWicklowWolf that fills in missing books in Readarr (official description: Retrieve missing Readarr books from Library Genesis). It reads the titles Readarr has marked as missing through its API, then searches Library Genesis (LibGen) for matching files and downloads them. Once a download finishes, it can trigger Readarr to scan the library so the files are imported automatically. The project is licensed under MPL-2.0, is distributed as a Docker image (thewicklowwolf/bookbounty), and provides a web interface with both dark and light themes.

Key Features

  • Sync missing books from Readarr: Fetches missing titles using your Readarr address and API key.
  • Search and download from LibGen: Currently only the http://libgen.is address is supported, and you can choose to search the fiction or non-fiction category.
  • Match control: Use minimum_match_ratio to set the minimum match percentage. The default is 90%.
  • Format and language filters: Preferred extensions can be set separately for fiction and non-fiction. Fiction defaults to .epub, .mobi, .azw3, .djvu, and non-fiction also includes .pdf by default. Language is read from Readarr's Metadata Profile first; if that isn't available, selected_language is used, which defaults to English.
  • Search tuning: You can search using only the author's last name (search_last_name_only), or strip everything after the colon in a book title before searching (search_shortened_title).
  • Scheduled sync: Set sync times as comma-separated hours in 24-hour format. For example, 2, 20 syncs at 2 AM and 8 PM every day. The actual start time may be off by up to 10 minutes.
  • Download control: You can set the download interval, request timeout, and maximum number of threads.
  • Library scan after import: library_scan_on_completion is enabled by default and tells Readarr to scan the library when downloads complete.

Who It's For

  • Self-hosting users who already manage their ebook library with Readarr
  • Home server users who already run *arr tools (Sonarr, Radarr, etc.) and want to bring ebooks into their automation

Deployment (Docker Compose)

services:
  bookbounty:
    image: thewicklowwolf/bookbounty:latest
    container_name: bookbounty
    ports:
      - 5000:5000
    volumes:
      - /path/to/config:/bookbounty/config
      - /path/to/downloads:/bookbounty/downloads
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped

After starting the container, open http://<host IP>:5000 in your browser to use the web interface.

Common Environment Variables

VariableDescriptionDefault
PUID / PGIDID of the user and group that run the app1000
readarr_addressReadarr addresshttp://192.168.1.2:8787
readarr_api_keyReadarr API keyEmpty
libgen_addressLibGen addressOnly http://libgen.is is currently supported
sync_scheduleHours for scheduled sync (comma-separated)Empty
minimum_match_ratioMinimum match percentage90
selected_path_typeDownload structure (file or folder)file
search_typeSearch type (fiction or non-fiction)fiction
thread_limitMaximum number of threads1
request_timeoutRequest timeout (seconds)120

Two Ways to Integrate with Readarr

  1. folder mode: Map /bookbounty/downloads directly to Readarr's main library directory and set selected_path_type=folder. BookBounty will try to create the directory structure /Author/Title/filename.ext and download the files into it.
  2. file mode: Map /bookbounty/downloads to a staging directory such as _unprocessed and set selected_path_type=file. All files are downloaded into the same directory. After Readarr scans the library, some files may need to be imported manually. Once imported, you can use Readarr's "Rename Files" feature to organize them into the correct folders.

For both approaches, we recommend enabling library_scan_on_completion=True so that imports happen automatically. Note: Readarr does not automatically rename files when importing them.

Technical Requirements

  • A host running Docker or Docker Compose
  • An accessible Readarr instance and its API key
  • A network environment that can reach Library Genesis
  • The project is written in Python and served by Gunicorn

Notes

  • Many resources on LibGen may involve copyright issues. Please comply with local laws and regulations, and use it at your own risk.
  • Only one LibGen address is currently supported, so the tool may stop working if that mirror goes down.