[PR #58] [MERGED] Remove user:{user} part when parsing URIs #608

Closed
opened 2026-03-02 23:49:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/58
Author: @aome510
Created: 6/21/2022
Status: Merged
Merged: 6/21/2022
Merged by: @aome510

Base: masterHead: debug-issue-57


📝 Commits (1)

  • 0404975 remove user:{user_id} part when parsing URIs

📊 Changes

3 files changed (+34 additions, -14 deletions)

View changed files

📝 spotify_player/src/event/popup.rs (+4 -2)
📝 spotify_player/src/state/player.rs (+15 -12)
📝 spotify_player/src/utils.rs (+15 -0)

📄 Description

Fixes #57.

Context

rspotify library expects to receive an URI of format spotify:{type}:{id} but URI returned from Spotify API can also have a format of spotify:user:{user}:{type}:{id}, which cause the panic happened in the original issue. This PR fixes this issue by removing the user:{user} part.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/58 **Author:** [@aome510](https://github.com/aome510) **Created:** 6/21/2022 **Status:** ✅ Merged **Merged:** 6/21/2022 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `debug-issue-57` --- ### 📝 Commits (1) - [`0404975`](https://github.com/aome510/spotify-player/commit/04049753711c103a92b1ba3f7f328cb66b13944c) remove `user:{user_id}` part when parsing URIs ### 📊 Changes **3 files changed** (+34 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/event/popup.rs` (+4 -2) 📝 `spotify_player/src/state/player.rs` (+15 -12) 📝 `spotify_player/src/utils.rs` (+15 -0) </details> ### 📄 Description Fixes #57. ## Context `rspotify` library expects to receive an URI of format `spotify:{type}:{id}` but URI returned from Spotify API can also have a format of `spotify:user:{user}:{type}:{id}`, which cause the panic happened in the original issue. This PR fixes this issue by removing the `user:{user}` part. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:49:01 +03:00
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#608
No description provided.