mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 16:05:53 +03:00
[PR #513] [MERGED] Spawn a local Tcplistener to handle the callback url #505
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#505
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/ramsayleung/rspotify/pull/513
Author: @ramsayleung
Created: 12/30/2024
Status: ✅ Merged
Merged: 1/1/2025
Merged by: @ramsayleung
Base:
master← Head:ramsay/add_tcplistern_for_callback📝 Commits (9)
dab6f74Spawn a local Tcplistener to handle the callback url rather than copy/paste URL into the terminal.2494c67Add CHANGELOG and fix cargo clippy error.7360347Rollback .env to fix failed tests.ab0cfc4Markartist_related_artists,track_features,tracks_featuresas deprecated because Spotify has deprecated these endpoints48e1780Fix the CI problem that Url.socket_addr method doesn't exist in wasm architecture.dbb4198Fix cargo format error.f2f22efRemove unnecessary debug statement.e20e08cComplete the description of CHANGELOG.8efda38Add the missing endpoint back into the description of CHANGELOG.📊 Changes
6 files changed (+186 additions, -68 deletions)
View changed files
📝
.env(+3 -3)📝
CHANGELOG.md(+3 -0)📝
src/clients/base.rs(+16 -0)📝
src/clients/oauth.rs(+147 -10)📝
src/lib.rs(+16 -0)📝
tests/test_with_credential.rs(+1 -55)📄 Description
Description
artist_related_artists,track_features,tracks_featuresas deprecated because Spotify has deprecated these endpoints and delete related tests as Spotify will return 403 to these deprecated endpoints.Acknowledge:
This solution of TCPListener is highly inspired by librespot.
Motivation and Context
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
get_socket_address_none,get_socket_address_localhostmeexample with redirect url:http://127.0.0.1: 8000/callback, open in the webbrowser and automatically connect to local TCPListener, work without human interaction.Is this change properly documented?
Yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.