[GH-ISSUE #626] Can I put the context name in to my customizations? #364

Open
opened 2026-03-02 23:46:55 +03:00 by kerem · 2 comments
Owner

Originally created by @macccorehenni on GitHub (Dec 2, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/626

If not, then I should be able to do that. I want to be able to mimic the playback display that e Echo does, namely:

Unity {title} by TheFatRat {artist}
From Unity {album} in Gear up! {context?}

The big problem I have with this is what variables are avalible. I understand that this may be a limitation of Spotify's API, but if at all possible, I'd love this.
Thanks ahead of time.

Originally created by @macccorehenni on GitHub (Dec 2, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/626 If not, then I should be able to do that. I want to be able to mimic the playback display that e Echo does, namely: Unity {title} by TheFatRat {artist} From Unity {album} in Gear up! {context?} The big problem I have with this is what variables are avalible. I understand that this may be a limitation of Spotify's API, but if at all possible, I'd love this. Thanks ahead of time.
Author
Owner

@aome510 commented on GitHub (Dec 3, 2024):

no context's name in not supported in the playback template, but should be relatively straightforward to add one

<!-- gh-comment-id:2514926219 --> @aome510 commented on GitHub (Dec 3, 2024): no context's name in not supported in the playback template, but should be relatively straightforward to add one
Author
Owner

@jtuzar commented on GitHub (Nov 13, 2025):

Hi, I drafted a PR #871 to solve this issue. It is my first introduction into this project. However it currently doesn't work for the app defined contexts for Tracks page.

To me it seems that in order to solve that PlayerState would need to keep track whether the current playback item is being played from the app defined context since it is not being fetched from the spotify api.

github.com/aome510/spotify-player@6faa7803b1/spotify_player/src/state/player.rs (L5)

github.com/aome510/spotify-player@6faa7803b1/spotify_player/src/client/mod.rs (L513)

Any feedback is welcome

<!-- gh-comment-id:3528127952 --> @jtuzar commented on GitHub (Nov 13, 2025): Hi, I drafted a PR #871 to solve this issue. It is my first introduction into this project. However it currently doesn't work for the app defined contexts for Tracks page. To me it seems that in order to solve that PlayerState would need to keep track whether the current playback item is being played from the app defined context since it is not being fetched from the spotify api. https://github.com/aome510/spotify-player/blob/6faa7803b1c5501096615a658291c08345b939b5/spotify_player/src/state/player.rs#L5 https://github.com/aome510/spotify-player/blob/6faa7803b1c5501096615a658291c08345b939b5/spotify_player/src/client/mod.rs#L513 Any feedback is welcome
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#364
No description provided.