Files
shelfmark/tests/metadata
a1a197020a fix(hardcover): search "Title: A Novel" as the title, not the full string (#1729)
Fixes #1728

Hardcover stores a lot of books as `Title: A Novel` with `A Novel` as
the subtitle. `_compute_search_title` sent those through
`_is_probably_series_position`, which treats "A Novel" the same as "Book
1" and returns `None`. The search then falls back to the full title, so
the release search sends `Title: A Novel` to Prowlarr, and indexers that
require every word find nothing.

This splits the check into `_is_series_position` and
`_is_genre_descriptor`. The descriptor rules themselves are unchanged.
`Series: Book 1` and `Series: A Novel` still return `None`. `Title: A
Novel` now returns `Title`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Book searches now handle descriptive subtitles such as “A Novel” and
“A Memoir” more accurately, using the book title rather than subtitle
wording when appropriate.
* Titles that consist of a series name followed by a descriptive
subtitle are no longer treated as book titles.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: ali <9556797+hongtron@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:54:47 -05:00
..