[BUG] Ebook matched to another book by the same author when its title tag names that book in a blurb

Aperta
#372 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, docker
Ambito
backend, search

Direzione di ricerca

Start by reading the embedded tag matching path and the title containment evidence described in the issue; compare how title_sort is matched with the plain title tag. Reproduce with the supplied The Breakdown and Behind Closed Doors titles, then check whether the title at the beginning of the tag wins over a title in the blurb. Done means the epub matches The Breakdown while the related #364 case is considered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
An epub of B. A. Paris's The Breakdown was matched to Behind Closed Doors, because the publisher's title tag ends with a blurb that names the other book:

title:      The Breakdown: The 2017 gripping thriller from the bestselling author of Behind Closed Doors
title_sort: Breakdown: The 2017 gripping thriller from the bestselling author of Behind Closed Doors, The

The match record shows title containment on calibre:title_sort as the proof, and a publication year conflict (file 2017, edition 2016) that was overruled:

{"route":"global/embedded_tags","matchedVia":"staged_field_representation","mode":"Balanced",
 "supporting":[{"type":"title","field":"calibre:title_sort",
   "observed":"Breakdown: The 2017 gripping thriller from the bestselling author of Behind Closed Doors, The",
   "expected":"Behind Closed Doors"}],
 "conflicting":[{"type":"publication_year","observed":"2017","expected":"2016",
   "detail":"Publication year conflicted with this edition; stronger book identity evidence won."}]}

The title starts with "The Breakdown", which is also a book by the same author in the library, so I think the leading title should win over a match buried in the subtitle. The mobi of the same book (same tags minus title_sort) matched The Breakdown correctly.

To Reproduce

  1. Add B. A. Paris with both The Breakdown and Behind Closed Doors in the library.
  2. Put an epub whose title tag is the string above in the author's folder.
  3. Rescan. The file lands on Behind Closed Doors.

Expected behavior
The file matches The Breakdown. Probably containment shouldn't count a title that only appears after "author of" (or similar blurb text), or it should rank below a title the tag starts with.

System Information:

  • OS: Fedora 44, container is Ubuntu 24.04
  • Chaptarr Version: 0.9.1000.0 (develop)
  • Installation Method: Docker
  • Matcher: evidence-v2.7-exact-group-spans, Balanced

Docker Information (if applicable):

  • Docker version: 29.7.2
  • Docker Compose version: 5.5.1

Additional context
Fixing it took a manual import, and that was blocked with "File already exists in database and is linked to a different book" until I moved the file out, rescanned, and moved it back. A way to reassign a tracked file to another book without deleting it would help here.

The same library had a StarCraft Dark Templar Saga #3: Twilight epub (title tag just "Starcraft: The Dark Templar Saga") matched to book 1, Firstborn. That looks like #364.

Lingua principale
C#
Stelle
664
Fork
48
Merge medio
5h 24m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Chaptarr/chaptarr

Tutte le issue di Chaptarr/chaptarr

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.