How 7sarus/calibre-lib works
Calibre LibGen Downloader is a Calibre UI action plugin for searching LibGen mirrors, queueing and downloading books, and reviewing files before library import. The principal workflow runs from the toolbar or library context menu through search and filtering, then selected or queued downloads and import review. It also provides mirror health and configuration controls, plus optional Hardcover reading-list lookup. Edges reflect the excerpts, source-index references, and README; the dialog’s unsampled implementation limits finer-grained control-flow claims.
Main entry points: dialog.py Downloader dialog · scraper.py LibGen scraper · hardcover.py Hardcover client · ui.py Toolbar action
Components 15
Calibre interface
- Toolbar action
ui.py - Downloader dialog
dialog.py - Progress renderer
progress_delegate.py
Search and mirrors
- Search controls
dialog.py - LibGen scraper
scraper.py - Mirror health UI
dialog.py
Downloads and import
- Bulk download queue
dialog.py - Download transfer
scraper.py - Import review
dialog.py
Settings and integrations
- Preferences and config
config.py - Hardcover client
hardcover.py
Other components
- Calibre user
- Calibre library
- LibGen mirrors
- Hardcover API
Connections 21
- Calibre user → Toolbar action: opens
README.md - Calibre user → Toolbar action: starts author search
README.md - Toolbar action → Downloader dialog: opens
ui.py - Downloader dialog → Search controls: shows
README.md - Search controls → LibGen scraper: searches
README.md - LibGen scraper → LibGen mirrors: queries
scraper.py - Mirror health UI → LibGen scraper: tests mirrors
README.md - LibGen scraper → LibGen mirrors: probes
README.md - Downloader dialog → Bulk download queue: manages
README.md - Bulk download queue → Download transfer: starts downloads
README.md - Download transfer → LibGen scraper: uses
scraper.py - Download transfer → LibGen mirrors: fetches files
README.md - Downloader dialog → Import review: presents files
README.md - Import review → Calibre library: imports selected books
README.md - Downloader dialog → Progress renderer: renders progress with
dialog.py - Downloader dialog → Preferences and config: reads preferences
dialog.py - LibGen scraper → Preferences and config: reads mirror settings
scraper.py - Preferences and config → LibGen mirrors: configures mirror list
README.md - Downloader dialog → Hardcover client: requests reading lists
README.md - Hardcover client → Hardcover API: queries
hardcover.py - Hardcover client → Calibre library: supports duplicate skipping
README.md