[FEATURE] Surface MAM's abridged marker as an indexer flag so custom formats can avoid or prefer abridged releases

Abierto
#321 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
69/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp
Área
api, backend

Línea de trabajo

Start in ParsingService.cs at CleanTitleCruft and trace how MyAnonaMouseJsonParser reads tags and how ParseIndexerFlags maps MAM fields to IndexerFlags. Check existing indexer flag tests and add coverage for the abridged tag, ensuring unabridged does not match; verify the documented browseflags bit if using it. Done means the flag reaches custom formats and appears in queue and interactive search.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.
There is no way to prefer unabridged releases, or to avoid abridged ones, even though MyAnonamouse already labels them. Custom formats can only see the release title, size, indexer flags, narrator and the dramatised detection, and abridgement is in none of those. The parser also strips "abridged" and "unabridged" from titles before matching (CleanTitleCruft in ParsingService.cs), so a Release Title regex only works when an uploader happened to put the word in the title, which on MAM is the exception.

The information is on the release. For Carl Sagan's Contact, MAM returns seven audio torrents; the abridged Jodie Foster reading (id 562102) has tags = "abridged, 64kpbs, library sourced, retail" and browseflags = 32, while the six unabridged ones all have browseflags = 0 and no such tag. MyAnonaMouseJsonParser reads tags for bitrate, duration and narrator extraction and ParseIndexerFlags reads the VIP and freeleech booleans, but neither looks at the abridged signal, so it never reaches the decision engine.

Describe the solution you'd like
Surface abridgement as an indexer flag. In ParseIndexerFlags, set a new IndexerFlags.Abridged when the MAM tags field contains the word "abridged" as a whole word (not "unabridged"), or when the corresponding browseflags bit is set if that is the documented meaning. The existing Indexer Flag custom-format specification then lets users score it without any new UI: a negative score for people who want unabridged, a positive one for the rare case where someone collects abridgements. The queue and the interactive search would show the flag like Freeleech or VIP today.

Describe alternatives you've considered

  • A Release Title custom format on \babridged\b. Added locally; it misses every release where the word is only in the tags.
  • Relying on the size comparer. Larger usually wins among equal formats, and an unabridged copy is usually larger, but an abridged M4B at 128 kbps still beats an unabridged MP3 at 64 kbps.
  • A duration check against the edition's expected runtime. More general, but Hardcover does not provide runtimes, so there is nothing to compare to.

Additional context
Observed on 0.9.965.0 (Docker). The MAM search response fields above come from /tor/js/loadSearchJSONbasic.php with the same session the indexer uses.

Media Type
Does this feature apply to:

  • Audiobooks
  • eBooks
  • Both

Use Case
Library of unabridged audiobooks where an abridged copy is never wanted, even at a better bitrate or format. Today the only protection is checking each grab by hand.

Lenguaje dominante
C#
Estrellas
664
Forks
48
Merge medio
5 h 24 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Chaptarr/chaptarr

Todos los issues de Chaptarr/chaptarr

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.