[FEATURE] Search and match manga/comics volumes named "T01" / "Tome 01" / "Vol 01" (French and other non-English releases)

Aperta
#381 1 commento 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
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend, search

Direzione di ricerca

Start in IndexerSearch/Definitions/BookSearchCriteria.cs, where BookQuery is built from GetMainSearchTitle(BookTitle, Author?.Name), and add the volume-stem query forms there. Then read Parser/ReleaseTitleMatchScorer.cs: MarkedSeriesPositionRegex, SeriesPositionMarkerTokens, CompactMetadataCodeRegex and IsMetadataToken decide whether T01 is a series position or a dropped metadata token. Done means a Solo.Leveling.T01... release is both returned by search and scored as volume 1, with cases added to the existing scorer tests. The exact set of forms and pack ranges is left open in the issue, so confirm scope with a maintainer first.

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

Descrizione

enhancement

Is your feature request related to a problem? Please describe.

Books that are volumes of a series (manga, comics, light novels) are almost never found on French trackers, because releases there name volumes in a compact form that Chaptarr neither searches for nor matches.

Example: the eBook "Solo Leveling, Tome 1" (hc:1901677, author CHUGONG, French edition) is monitored on the eBook side. A verified release exists on the tracker (Prowlarr, Torznab, category 7030 Books/Comics) as:

Solo.Leveling.T01.Gong.Chu.2021.FR.[CBZ]-NOTAG

Both automatic and interactive search send only these terms (Prowlarr log):

Searching indexer(s): [...] for Term: [Solo Leveling Tome 1 CHUGONG], Categories: [7000, 7010, 7020, 7030]
Searching indexer(s): [...] for Term: [CHUGONG Solo Leveling Tome 1], Categories: [7000, 7010, 7020, 7030]
Searching indexer(s): [...] for Term: [Solo Leveling Tome 1], Categories: [7000, 7010, 7020, 7030]

and Chaptarr ends with Book search completed. 0 reports downloaded. (interactive search: 0 releases). The indexer only supports book-search: [q] (plain keyword search), and the words Tome and 1 do not appear in the release name (T01 is a single token), so nothing comes back. Categories are not the cause: the tracker maps "BDs & Comics & Manga" to 7030, which is searched.

Looking at the code, two parts are involved:

  1. Search terms. IndexerSearch/Definitions/BookSearchCriteria.cs builds BookQuery from the metadata title only (GetMainSearchTitle(BookTitle, Author?.Name)), so a series position is only ever searched in the metadata's own wording ("Tome 1", "Vol. 1"…).
  2. Matching. Even if such a release arrives (e.g. via RSS), Parser/ReleaseTitleMatchScorer.cs recognizes series positions written as book|bk|vol|volume|tome <n> (MarkedSeriesPositionRegex, SeriesPositionMarkerTokens), but a compact token like T01 matches CompactMetadataCodeRegex (^[\p{L}]{1,3}\d{1,3}$) and is treated as a metadata token by IsMetadataToken. The volume number is then dropped, so Solo.Leveling.T01… cannot be told apart from T02, T03… of the same series (risk of no match, or of matching the wrong volume).

Describe the solution you'd like

For books with a series position (or a volume number in their title):

  1. Search: in addition to the current query, also search the series/title stem with the common volume forms, at least:
    • T01, T1 (French, very common on French trackers)
    • Tome 01
    • Vol 01, Vol. 1, Volume 01
    • optionally the bare stem (Solo Leveling) and let the parser pick the right volume from the results
  2. Match: treat T<n> / T<nn> (and zero-padded Tome 01, Vol 01, v01) as series-position markers in ReleaseTitleMatchScorer when they follow the series/title stem, instead of classifying them as metadata codes, so Solo.Leveling.T01… scores as volume 1 of "Solo Leveling".

Packs (T01 à T16, T01-T03, Intégrale) are a separate question; recognizing a range would already allow showing them in interactive search.

Describe alternatives you've considered

  • Renaming the book in Chaptarr: not durable (metadata refresh) and not per tracker.
  • Grabbing the torrent manually and using Manual Import: works, but defeats automation for every volume of every manga.
  • An external tool searching the indexers and pushing releases: duplicates Chaptarr's job.

Additional context

  • Chaptarr v0.9.1000.0 (Docker, chaptarr/chaptarr:latest), indexers through Prowlarr (Torznab).
  • Ebook metadata profile restricted to French (fre,fra); the French volumes are separate Hardcover works ("Solo Leveling, Tome 1"…), which Chaptarr resolves and monitors correctly. Only search and release matching fail.
  • The same naming (T01, Tome 01, Vol.01) is standard for French manga, comics (BD) and light novels, so this affects most of them, not just this series.

Media Type
Does this feature apply to:

  • Audiobooks
  • eBooks
  • Both

Use Case

A French household requests manga volumes (here through a request front end, which hands them to Chaptarr with POST /api/v1/book/import). Chaptarr adds and monitors the right volume, but never finds a release, although one exists on the tracker under the usual Series.T01.Author.Year.FR.[CBZ] naming.

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.