[PR #618] [MERGED] fix Spotify Connect feature support after new API changes #815

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

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/618
Author: @aome510
Created: 11/30/2024
Status: Merged
Merged: 11/30/2024
Merged by: @aome510

Base: masterHead: spotify-connect-client


📝 Commits (2)

  • 929fbc3 handle invalid playback with better UI message
  • 4549164 handle "get available devices" API using user provided client_id

📊 Changes

4 files changed (+78 additions, -40 deletions)

View changed files

📝 spotify_player/src/client/mod.rs (+40 -14)
📝 spotify_player/src/client/spotify.rs (+17 -6)
📝 spotify_player/src/token.rs (+3 -3)
📝 spotify_player/src/ui/playback.rs (+18 -17)

📄 Description

Fixes #617

New Spotify API changes break clients using user-provided client_id. As a result, this PR uses the official Spotify's client_id (auth::SPOTIFY_CLIENT_ID) to handle all APIs except user's available devices API which uses user-provided client_id as before (required for Spotify Connect support)

In addition to the above change, this PR also improves the UI message when the current playback is not invalid or unavailable.


🔄 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/618 **Author:** [@aome510](https://github.com/aome510) **Created:** 11/30/2024 **Status:** ✅ Merged **Merged:** 11/30/2024 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `spotify-connect-client` --- ### 📝 Commits (2) - [`929fbc3`](https://github.com/aome510/spotify-player/commit/929fbc376b2a65e783f2ce279c3b14bfd5353511) handle invalid playback with better UI message - [`4549164`](https://github.com/aome510/spotify-player/commit/45491649e637e8e5f41e15d876fbd3f972f9a88e) handle "get available devices" API using user provided client_id ### 📊 Changes **4 files changed** (+78 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/client/mod.rs` (+40 -14) 📝 `spotify_player/src/client/spotify.rs` (+17 -6) 📝 `spotify_player/src/token.rs` (+3 -3) 📝 `spotify_player/src/ui/playback.rs` (+18 -17) </details> ### 📄 Description Fixes #617 [New Spotify API changes](https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api) break clients using user-provided `client_id`. As a result, this PR uses the official Spotify's `client_id` (`auth::SPOTIFY_CLIENT_ID`) to handle all APIs except [user's available devices API](https://developer.spotify.com/documentation/web-api/reference/get-a-users-available-devices) which uses user-provided `client_id` as before (required for Spotify Connect support) In addition to the above change, this PR also improves the UI message when the current playback is not invalid or unavailable. --- <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:57 +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#815
No description provided.