Repository navigation
Settings now save one way, Bindery can unpack the .zip of a usenet download if you switch it on, libraries shared through a POSIX ACL work, Add to library says which metadata providers it could not use, and the Books list sorts by date added. There are fixes for single sign on, search, torrent blocklisting, the Series page and shared libraries. One database migration (141) runs on its own at startup, so take a backup first. Nothing needs configuring. Behaviour changes are listed below.
Upgrade notes
- Rolling back to v1.53.3 does not work without restoring a backup, so take a backup before upgrading. Migration 141 stays recorded in the database, and an older binary refuses to start on a
schema_migrationstable with a version it does not know. It adds one column and one small index tobook_filesand takes well under a second on most libraries. - Bindery measures your library files after the upgrade (#4216). A background job reads the size of every library file, in small batches, at startup and then daily for the files it could not read. On a large library on a network share expect some extra disk activity for a while.
- Most settings no longer have a Save button (#4074). A text field saves when you leave it or press Enter, and Esc before leaving puts the saved value back. The Calibre plugin connection is the exception: Plugin URL, API key and Push path remap share one Save button.
- Settings refuse values that cannot work (#4248). A number outside its range, or a path that is not absolute, now gets a 400. The stall timeout stops at 43200 minutes, the Prowlarr timeout at 3600 seconds and log retention at 365 days.
POST /api/v1/rootfolderrefuses a relative path. On Windows a path needs a drive letter or a UNC share, so/booksis no longer accepted there. Values already saved are not changed and keep being read. - A torrent whose indexer keeps answering with a server error can now be blocklisted (#4111). Earlier releases never counted a server error. See Fixed for the conditions.
- With multi user enforcement on, a request for a missing format of a book the requester can't change is now queued for an admin (#4089). It used to get a 409. An admin's approval adds the format to the existing book, even when another account owns it.
- With multi user enforcement on, a book added from Discover now gets the same owner as Add Book would give it (#4090). A book an admin adds under their own author is no longer visible to every user.
- Files placed in the library now follow the umask (#4213). Folder copies of multi file audiobooks and
metadata.opfwere created as0644and are now requested as0666. With the usual022umask the result is still0644. A002umask now gives group writable files, and with027or077themetadata.opffile is less readable than before. - Some releases are now rejected or accepted differently (#4230, #4206). A release that matches only the part before the colon and names another book in the series is rejected, and audiobook releases tagged WEB-DL are no longer dropped as video.
- API scripts:
POST /api/v1/hardcover/testandPOST /api/v1/calibre/testnow read an optional JSON body, so a body that is not JSON, or is larger than 8 KiB, gets a 400. Ahardcover.api_tokenvalue that holds no token, such asBeareron its own, is refused instead of clearing the saved token. The login URL of a configured single sign on provider that is unavailable now redirects to/login?sso=unavailableinstead of answering a JSON 400.
Added
- Bindery unpacks the .zip of a usenet download itself (#4131). SABnzbd and NZBGet leave a zip alone, and scene ebook releases, German ones especially, are often a zip that holds the book. Bindery can now extract it in place and import the book, with no external tool. It is off by default, because it opens archives from the internet: turn it on with Extract ZIP archives of usenet downloads (
import.extract_zip, Settings, File Naming). While it is off, a download that holds only a zip says so in the Queue, with how to turn extraction on, instead of "no book files found". It is strict: only SABnzbd and NZBGet downloads, never a torrent, a Soulseek folder or a manual import, only inside Bindery's own download folders (BINDERY_DOWNLOAD_DIR,BINDERY_AUDIOBOOK_DOWNLOAD_DIRand the client's path remap), which must be writable, only when no book file is there yet, and one level only, so a zip inside the zip is left alone. A zip is refused whole, with the reason in the Queue, when an entry name is unsafe, longer than 1024 bytes, over 255 bytes in one path segment or deeper than 32 levels, it holds more than 2000 entries or would create more than 2000 folders, its directory is larger than about 2.6 MB, it unpacks to more than 4 GiB in total or 2 GiB for one file, or it compresses more than 100 to 1, and nothing is written when the disk has less free space than the zip unpacks to. A zip that holds nothing that looks like a book is undone and says so. A colon in an entry name becomes an underscore, soDune: Messiah.epubunpacks asDune_ Messiah.epub. Password protected entries, links and special files are skipped, as are an entry named like Bindery's own marker file and, on Windows, device names and names ending in a dot or space. Entries left out by name are listed in the Queue message and the log, and the job folder and its zip are then kept. A file that is already there is never overwritten, and a failed or stopped extraction removes what it wrote. Otherwise the zip stays until the usual cleanup: in move mode (and hardlink mode, which moves usenet files) a fully imported job folder is removed with it, in copy mode it stays with the client's job. Folders it creates followBINDERY_DIR_MODE. RAR and 7z are still not unpacked. Thanks to @BraynArts for the report. BINDERY_DIR_MODE=inheritlets the filesystem decide the mode of imported folders (#4175). Bindery asks for0777and never changes the mode afterwards, so a parent default POSIX ACL applies if there is one, and the process umask applies if there is not. This fixes a library shared with another service such as Audiobookshelf through a default ACL, where the usual0750request cut the new folder's ACL mask tor-xand the other service could not write into it. Without an ACL and with the usual022umask,inheritgives0755, readable by every local account, and with umask000it gives0777, so on bare metal setUMask=0027in the systemd unit. The default stays0750and the numeric choices stay0700,0750and0755. See "Sharing a library through a default ACL" in the deployment guide. Thanks to @koinupapi for the report.- Add to library says which providers were not searched (#4212). When a book search comes back empty or short, the dialog names the metadata providers that were not used: Hardcover skipped because no API token is set, or a provider that timed out, was rate limited, rejected its key or token, or failed. An invalid, expired or restricted Google Books key is reported as a rejected key. Admins also get a pointer to Settings, API Keys.
GET /api/v1/search/booktakeswithOutcome=1to return this provider status next to the results; without it the response is unchanged. - Sort the Books list by date added (#4211). The Sort menu now has "Added, newest" and "Added, oldest", the same choices the Author page has. Books added in the same second, as a bulk import does, keep the order they were added in. Thanks to @Lauraisgreat97 for the request.
- Bindery now records how big each library file is (#4216). The size column in
book_fileswas always 0. New files are now measured as they are imported, scanned, matched or moved. An audiobook folder adds up the files inside it as they were when it was recorded, so files added later are not counted until it is recorded again. Existing files are filled in by a background job that runs at startup and then daily, waits politely on slow or unmounted shares and skips a missing file until it comes back. Nothing in the UI shows the total yet.
Changed
- One way to save a setting (#4074, #3991, #4260). Settings used to mix two triggers. Now a toggle, select, radio button or checkbox saves as soon as you change it, and a text field saves when you leave it or press Enter, only if the value changed and is valid. Nothing saves while you type. A field that differs from the saved value says "Unsaved" under it, and every save, Clear and Reset to default shows a short message that names the setting and never the value. A save that fails keeps what you typed and shows the reason: press Enter to retry or Esc to go back, and leaving the field does not send it again. An edit still in a field when you switch tab is saved on the way out when it is valid, never a key or token. Testing a typed Hardcover token tries it without saving it, and a token that fails the test is only saved if you press Enter. This covers the General, File Naming, API Keys, Logs, Calibre and Advanced tabs. Forms whose fields belong together, such as indexers, download clients, notifications, profiles, Audiobookshelf, BookOrbit, Grimmory and OIDC providers, keep their Save button. A Settings search result or deep link now puts the cursor in the field itself.
- The Calibre plugin connection has one Save button (#4260). Plugin URL, API key and Push path remap are saved together when you press Save, or Enter in one of them, and not as you leave each box. The URL is saved first, then the key. Saving a new URL removes the old key, and the tab says so before you save. Test connection tries the typed URL and key and saves nothing, and the saved key is never sent to a URL you have only typed. Typing no longer starts a connection test on every keystroke.
- A saved Google Books key can be removed (#4260). The API Keys tab now says whether a key is saved and has a Clear button.
- A request for a missing format of a book the requester can't change now waits for an admin (#4089). With
BINDERY_ENFORCE_TENANCYon, a requester or user who asked for the audiobook of a book the library holds only as an ebook got a 409 when that book was shared or belonged to another account, so the request never reached the admin's queue. It is now created as pending and is never auto approved. An admin approving it adds the format to the existing book, which keeps its owner, and searches if search on add is ticked. This reverses the earlier rule (#3835) that an approval never changed another account's book. A request whose formats such a book already covers is still refused as already in the library, and installs with enforcement off are unchanged. An auto approval that can't read the requesting account now leaves the request pending, with or without enforcement. Thanks to @NopeCharon.
Fixed
- Single sign on recovers by itself when the identity provider was unreachable at startup (#4267). Discovery failed once and nothing in a browser retried it, so an SSO only install showed "Contact your administrator for access" until a restart or a settings save. Bindery now retries in the background, and the login page lists the provider as temporarily unavailable with a "Try again" button instead of hiding it. Each discovery attempt now gives up after 15 seconds.
- Settings refuse values that cannot work, and say why (#4248). Numbers on Advanced are held to the limits shown beside them, so a stall timeout of 0 is refused instead of saved and ignored, and the log retention limit now applies to the API too. Folder and file paths (CWA ingest folder, drop folders, Calibre library and calibredb paths, root folders) must be absolute. The per track audiobook template says it needs
{Part}and now has a preview. - A failed save is never reported as saved (#4260). Behind HTTP/2, an error page from a reverse proxy could leave Bindery with no error text, and some places took that for success. The error now shows the HTTP status.
- A torrent whose indexer keeps answering with a server error is now blocklisted (#4111). When an indexer answered a release's download link with a server error such as Prowlarr's 500 "Download failed", Bindery paused the indexer but never held it against the release, so the same release was grabbed again every six hours for ever. A 500, 502, 503, 504 or 520 to 527 now counts like a 404: three failures at least an hour apart blocklist the release, but only while the indexer is otherwise serving and no other release from it failed, so an indexer that is down is still only paused. A run with a server error in it must also span at least 24 hours, and an entry added by mistake can be removed under Settings, Blocklist. A 429, a "disabled till" notice or a
Retry-Afterheader never counts. Thanks to @highlander-phill for the report. - The wrong book in a series is no longer approved through the part before the colon (#4230). A release that matches only the main title of a "Main: Subtitle" book is now rejected when it also names another of the author's library books (
[Cradle 01-03] - Unsouled, Soulsmith, Blackflamefor book 8), a decimal series number that is not this book ([A Thousand Li 03.5]for book 4), or a later number when the subtitle numbers the book as the first. A library entry that is only the series written another way does not count as another book, a wanted omnibus whose release lists the books it holds is still kept, and so is an audiobook track range. Thanks to @KlumbsyD for the report. - Audiobook rips tagged WEB-DL are no longer dropped as video (#4206). A release whose only video marker is
WEB-DLorWEBRipis now kept when its name says it is an audiobook (the word audiobook or its equivalent in several languages, unabridged,M4B, orMP3with narrated or read by), or when the indexer filed it only under audio categories. Resolutions, video codecs and other video tags still drop it. The Filter decisions panel says which applied. Thanks to @Duckburg-Net for the report and the analysis. - Library files no longer cut a default ACL down to read only (#4213). Folder copies of multi file audiobooks and the
metadata.opfsidecar were created as0644, so a service granted write access through a default ACL could read them but not rewrite them. They are now requested as0666and the umask or the ACL decides. Thanks to @RyoKusnadi for the fix. - The Series page counts a book with one format on disk as owned (#4217). Such a dual format book is no longer listed as missing. It is labelled "partly owned", and Fill gaps stays available to queue the other format. Thanks to @fuadsn.
- Books added from Discover get the same owner as Add Book (#4090). With enforcement on, a book an admin added from a recommendation was created with no owner, so every user saw it. It is now filed in the library of the author it lands under. Books added earlier keep their owner.
- Norwegian settings text (#4212). The File Naming, Storage and Schedules tabs and other settings strings that still showed in English are now translated, apart from product names. Swedish got the same set and still has older gaps. The audnex marketplace list names countries in the interface language.
Security
- Frontend tooling picks up the cross-spawn fix (GHSA-ghv9-86vm-4v8m, #4246). This is a build tool only.