[PR #440] [MERGED] Ability to get the Spotify URI from a SpotifyId #925

Closed
opened 2026-02-27 20:00:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/440
Author: @codedninja
Created: 3/2/2020
Status: Merged
Merged: 7/25/2020
Merged by: @sashahilton00

Base: devHead: SpotfyId-toURI


📝 Commits (2)

  • 8939954 Added to_uri function to spotify_id
  • d47cc75 Fixed formatting

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 core/src/spotify_id.rs (+8 -0)

📄 Description

Was possible to determine different types of SpotifyId referencing the audio_type to format the URI when referencing it but having to write a match every time is redundant.

Added function due to ability to call it inside of Spotifyd when setting env for callback commands on player event.


🔄 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/librespot-org/librespot/pull/440 **Author:** [@codedninja](https://github.com/codedninja) **Created:** 3/2/2020 **Status:** ✅ Merged **Merged:** 7/25/2020 **Merged by:** [@sashahilton00](https://github.com/sashahilton00) **Base:** `dev` ← **Head:** `SpotfyId-toURI` --- ### 📝 Commits (2) - [`8939954`](https://github.com/librespot-org/librespot/commit/8939954bd77f94833e024aef15310bba59e1b806) Added to_uri function to spotify_id - [`d47cc75`](https://github.com/librespot-org/librespot/commit/d47cc75dc6ad9b33a5b9e37371f79fedf4258598) Fixed formatting ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `core/src/spotify_id.rs` (+8 -0) </details> ### 📄 Description Was possible to determine different types of `SpotifyId` referencing the `audio_type` to format the URI when referencing it but having to write a `match` every time is redundant. Added function due to ability to call it inside of Spotifyd when setting env for callback commands on player event. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:00:29 +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/librespot#925
No description provided.