Commit 12603c89 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Persist track_number on LibrarySong, add GET /library/album

identify_audio() (and the IdentifiedTrack cache) always computed a
track number, but LibrarySong had no column to store it in - so an
album's tracks had no real order to sort by anywhere they were shown.
Adds the column (+ migration), persists it in _identify_tag_and_store,
and adds GET /library/album?album=&artist= which returns one album's
songs sorted by it (numberless tracks last, then alphabetically) for
the frontend's new dedicated album detail page.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 9c657b0a
Pipeline #1161 failed with stage
in 15 minutes and 55 seconds