mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #795] [MERGED] add display of genres in playback UI via {genres} #883
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#883
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/795
Author: @KUHLwasStolen
Created: 8/5/2025
Status: ✅ Merged
Merged: 8/31/2025
Merged by: @aome510
Base:
master← Head:display-genres📝 Commits (6)
b4a02acadd display of genres in playback UI via{genres}470c072makegenre_numan argument to optimize config getting5ecda7dfix unrelatedcargo clippycomplaints5f76595makecargo clippyhappy try 298e97e6moveformat_genresto ui utilsa1249b0update doc📊 Changes
9 files changed (+135 additions, -39 deletions)
View changed files
📝
docs/config.md(+38 -35)📝
examples/app.toml(+2 -1)📝
spotify_player/src/client/mod.rs(+32 -0)📝
spotify_player/src/config/mod.rs(+7 -1)📝
spotify_player/src/config/theme.rs(+13 -0)📝
spotify_player/src/state/data.rs(+2 -0)📝
spotify_player/src/state/ui/mod.rs(+1 -1)📝
spotify_player/src/ui/playback.rs(+13 -1)📝
spotify_player/src/ui/utils.rs(+27 -0)📄 Description
As suggested in #145 this pull request adds the functionality to display genres in the playback UI.
The number of genres is adjustable via the
genre_numconfig option.{genres}can be used in theplayback_formatconfig to place the genres where wished.The genres are formatted as follows (
genre_num = 2)Here is an example with the default

genre_num = 2The genres are retrieved for the first/main artist of a track and cached in association to this artist.
closes #145
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.