/
/
/
# What does this implement/fix? Tracks in an OpenSubsonic playlist listing showed a placeholder instead of their cover art. Since #5359 dropped the per-track album fetch, a playlist track's album is a bare `ItemMapping` with no image, and `parse_track` never set an image on the track itself, so nothing was left to fall back on. OpenSubsonic already returns a `coverArt` id on every playlist entry, so the track now carries its own thumbnail, the same way `parse_album` does. No extra requests, so resolving a playlist stays a single `getPlaylist` call. - Add a THUMB image from the song's `coverArt` in `parse_track` - Add a regression test asserting playlist tracks carry that image and still trigger no per-track album or lyrics fetches **Related issue (if applicable):** - https://github.com/music-assistant/support/issues/6054 ## Types of changes - [x] Bugfix (non-breaking change which fixes an issue) — `bugfix` - [ ] New feature (non-breaking change which adds functionality) — `new-feature` - [ ] Enhancement to an existing feature — `enhancement` - [ ] New music/player/metadata/plugin provider — `new-provider` - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) — `breaking-change` - [ ] Refactor (no behaviour change) — `refactor` - [ ] Documentation only — `documentation` - [ ] Maintenance / chore — `maintenance` - [ ] CI / workflow change — `ci` - [ ] Dependencies bump — `dependencies` ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. (run on the changed files; the only mypy failures are pre-existing `sendspin` ones from a stale `aiosendspin` in my local env) - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable. (opensubsonic suite: 48 passed) - [ ] For changes to shared models, the companion PR in `music-assistant/models` is linked. - [ ] For changes affecting the UI, the companion PR in `music-assistant/frontend` is linked. - [x] I have read and complied with the project's [AI Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md) for any AI-assisted contributions. - [ ] I have [raised a PR against the documentation repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md) targeting the main or beta branch as appropriate. --------- Co-authored-by: Marcel van der Veldt <[email protected]> Co-authored-by: Eric Munson <[email protected]>