Skip to content

Add artist artwork display for radio streams#3110

Open
OzGav wants to merge 6 commits intodevfrom
radio-artist-artwork
Open

Add artist artwork display for radio streams#3110
OzGav wants to merge 6 commits intodevfrom
radio-artist-artwork

Conversation

@OzGav
Copy link
Contributor

@OzGav OzGav commented Feb 7, 2026

With all the UI improvements I thought it would be good to enhance radio stations to rather than just show the station logo but instead show the current artist. This PR allows for the display of artist thumbnail images for radio streams when track metadata (Artist - Title) is available.

How it works:

  • Parses "Artist - Title" from ICY/HLS stream metadata
  • Checks user's library first for matching tracks/artists (fast, no API calls, respects user-curated images)
  • Uses MusicBrainz recording search to verify artist + track for external lookups
  • If unique studio album found, tries album artwork first via TheAudioDB/Fanart.tv
  • Falls back to artist artwork lookup via TheAudioDB/Fanart.tv
  • If no artwork found, uses the station logo as fallback
  • Results cached (90 days hits, 7 days misses) to minimize API calls

Album matching: Prioritizes original studio albums by sorting recordings by earliest release date and matching albums from the same year. This ensures the original album artwork is shown rather than a later compilation or live album.

Title cleaning: Strips version suffixes (remastered, live, etc.) and featuring credits from track names to improve MusicBrainz matching.

Edge cases handled:

  • Name format variations: Squier, Billy → Billy Squier, Bon_Jovi → Bon Jovi
  • Diacritics: Blue Öyster Cult matches Blue Oyster Cult
  • Collaborations: Artist1 feat. Artist2 extracts primary artist only
  • Advertisements: Detects ad markers and shows station logo instead

@marcelveldt marcelveldt marked this pull request as draft February 8, 2026 18:53
@OzGav OzGav marked this pull request as ready for review February 9, 2026 04:23
@OzGav OzGav marked this pull request as draft February 9, 2026 05:26
@OzGav
Copy link
Contributor Author

OzGav commented Feb 9, 2026

Since we are trying to lookup on musicbrainz it is important clean artist and tracks names are sent. New functions added to support this.

@OzGav
Copy link
Contributor Author

OzGav commented Feb 9, 2026

Also I know some comments need to be tidied up or removed just wanted to keep my thought patterns there for now.

@OzGav OzGav marked this pull request as ready for review February 9, 2026 07:01
@OzGav OzGav requested a review from marcelveldt February 11, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants