github vavallee/bindery v1.53.3

one hour ago

A patch release with three search fixes from reports since v1.53.2, a fix so the automatic search reaches every wanted book, a BookOrbit import fix, and two speedups for large libraries found by a new performance test run. Three small database migrations (138, 139 and 140) run on their own at startup. Nothing needs configuring. The search fixes change which releases rank first or are found for the books they describe, and the automatic search now visits wanted books in a different order.

Upgrade notes

  • Rolling back to v1.53.2 does not work without restoring a backup, so take a backup before upgrading. Migrations 138, 139 and 140 stay recorded in the database, and an older binary refuses to start on a schema_migrations table with a version it does not know. They add two indexes, one column and two more indexes, and take well under a second.

Changed

  • OPDS author and recently added feeds no longer slow down as the library grows (#4184). Opening Authors in a reading app took about a second on a library of 40,000 books and 2,000 authors, and Recently Added about 0.6 seconds, because Bindery asked the database for each author's books in turn and loaded every imported book to find the newest 50. Both are now answered by a single query each (Authors about 25 ms, Recently Added about 3 ms at that size), with the same entries in the same order. A user's Series feed on a multi user install gets the same treatment. Upgrading adds one small index to the books table.
  • The Queue page's 5 second refresh is cheaper on installs with a long download history (#4186). The refresh used to read every row of the downloads table to find the ones it lists, and loaded each listed row's whole book to show a title and an author. It now reads only the rows it returns and only those two names. On a 40,000 book library with about 10,000 downloads the request went from 85 ms to 37 ms, and imports older than the 7 day window no longer cost anything. The response of GET /api/v1/queue is unchanged. The History page and pending releases get the same lighter book lookup. Upgrading adds two indexes to the downloads table (migration 140), which takes well under a second.

Fixed

  • Search no longer prefers a later numbered volume for a book whose volume it does not know (#4173). A wanted title that numbers itself, such as "Corruption Wielder: Book 1" or "Stone vs. Viper, Book 2", now rejects a release like "Corruption Wielder 04" or "Stone vs. Viper 15", because the number in the title stands in for the missing series position, including when the number follows the subtitle. A plain title with no stored position can really be any volume, so a release like "Darling of Fate 02" or "Dungeon Tour Guide 2 by Aaron Shih" is not rejected, but it now ranks below an unnumbered or "1" release of the same quality. Thanks to camerontaylor for the report and the table of examples.
  • Books whose title abbreviates the volume now find releases that spell it out (#4176). A book such as Under the Oak Tree (Novel), Vol. 1 stayed Wanted on indexers that need every query word in the release name (MyAnonamouse through Prowlarr), because every query said Vol. and the release is named Volume 1. When a search ends without a relevant result, Bindery now sends one more title only query per indexer with the marker spelled out (Vol or Vol. as Volume, Bk as Book, Pt as Part, only before a digit). It counts against the indexer's daily query cap and shows in the search debug panel as volumeMarkerQuery. A search that already finds its book, or a title with no abbreviated marker, sends nothing extra. Queries for titles with a removed qualifier such as (Novel) also no longer carry a stray space before the comma. Thanks to huepotman for the report and the indexer logs.
  • The automatic search now gets to every wanted book, not just the first ones by title (#4185). The scheduled sweep searched the wanted list in the same title order every run and kept no record of what it had searched. When an indexer's daily query limit ran out part way through, or Bindery restarted during a sweep, the next sweep started again from the top, so on a large wanted list the first titles were searched every time and the rest never. The sweep now searches books it has never searched first and then the ones it searched longest ago, and remembers that across restarts, so a list too big for one day's allowance is covered over several days. A book counts as searched once its search reached at least one indexer. One that every indexer skipped keeps its place at the front. Searching a book yourself or adding it with auto-grab on counts as well, so the sweep does not repeat it straight away. The first sweep after the upgrade runs in the old title order. The Wanted page, OPDS and every other list keep their order.
  • Books titled "Series, Book N: Subtitle" now find releases named by the subtitle alone (#4183). A book such as Path to Transcendence, Book 1: Will of Mana stayed Wanted on indexers that need every query word in the release name (MyAnonamouse through Prowlarr), because every query carried the series and the position and the release is named Will of Mana by Ryan Arelius. When a search ends without a relevant result, Bindery now sends one more query per indexer made of the author's surname and the subtitle (Arelius Will of Mana). A result from it is kept only when its name is the subtitle and the author plus a narrator or co-author credit, and known format, language, publisher or genre tags in brackets, so another author's book with the same title, a longer title (Will of Mana Rising), a numbered or series note, or another language is not picked up. It is sent only when the part before the colon ends in a position number and the subtitle is specific enough (not A Novel or Book Two), it counts against the indexer's daily query cap, and it shows in the search debug panel as subtitleQuery. Thanks to huepotman for the report and the indexer logs.
  • BookOrbit import: clearer "book match is ambiguous" failures, and co-authored books now link (#4189). When a book's file is already tracked on a Bindery book under a different author, the failure now names that book and author instead of only saying the match is ambiguous, and the run logs it. The author check also looks at every author BookOrbit credits, not just the first, so co-authored books and anthologies whose file sits on a book filed under another credited author are linked instead of failing. Near spellings such as "Heather Gray" and "Heather Graham" still count as a conflict. Thanks to @gavinmcfall for the report and the detailed trace.

Don't miss a new bindery release

NewReleases is sending notifications on new releases.