Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

shared: treat year 0/junk as missing in all providers and album year min()

Aperta
#1,092 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, ios, kotlin
Ambito
backend, mobile

Direzione di ricerca

Start with the provider mappings in MediaBrowserMediaProvider.kt:412, PlexSongMapping.kt:34, FileTags.kt:233-235, and the existing Subsonic guard in SubsonicMediaProvider.kt:179; then inspect LibraryGroups.kt:19, where album years are combined. Check how each path handles zero, junk years below 1000, and whitespace before parsing; done when invalid years are treated as missing consistently and an album's year ignores them.

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

Descrizione

bug impact:U1 P3 reach:R2 size:S

A year of 0 (or a junk value like 1) is treated as a real year almost everywhere, and the album year is the minimum of its songs' years. So one bad track makes the whole album show year 0 or 1. It should be treated as missing.

  • Emby/Jellyfin: ProductionYear becomes LocalDate(year,1,1) with no > 0 check (MediaBrowserMediaProvider.kt:412).
  • Plex: parentYear is mapped the same way (PlexSongMapping.kt:34).
  • Local tags: "0000" becomes LocalDate(0,1,1) (FileTags.kt:233-235). MediaStore YEAR is 0 when unknown (unverified).
  • LibraryGroups.kt:19: album year = min() of song years, with nothing filtered out.
  • Subsonic already guards this with takeIf { it > 0 } (SubsonicMediaProvider.kt:179). Apply the same rule (probably < 1000 = missing) in every provider and in LibraryGroups.

Where it was seen: the owner's Emby library has albums tagged year 1 (Audioslave, St. Vincent) and 0 (Muse Black Holes and Revelations, Coldplay Everyday Life). Shuttle2 showing 0 or 1 for these is from reading the code, not checked on a device (unverified).

Same area: Android doesn't trim before parseDate, so " 2011" fails and falls back to DATE. iOS trims (FfmpegTags.kt:17-19), so the two platforms can show different years. Related, closed: #841.

Impact U1 (wrong or blank year shown, cosmetic) · Reach R2 (any library with untagged or junk years; code-read) · Implemented: partly (Subsonic only) · Design fit: fits · Complexity: S

Lingua principale
Kotlin
Stelle
232
Fork
28
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 timusus/Shuttle2

Tutte le issue di timusus/Shuttle2

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.