mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[PR #198] [MERGED] Make the client/application more robust to network errors #660
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#660
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/aome510/spotify-player/pull/198
Author: @aome510
Created: 5/15/2023
Status: ✅ Merged
Merged: 5/16/2023
Merged by: @aome510
Base:
master← Head:make_client_more_robust📝 Commits (10+)
25d04d1create new streaming connection with a blocking taskf0e05fdstore Spotify client's session in Arcbd09d18create a client function to connect to a Spotify device41d8167refactor streaming connection codes034a813handle initializing new streaming connections upon new sessiond7aefa4implementClient::new_sessionab3cf0fdon't do logging for CLI commandsa085cecdon't forget to send empty buffer to indicate end-of-chunkf91c027update authentication process to useAuthConfiged3905davoidRspotify not authenticatedpanic📊 Changes
10 files changed (+274 additions, -240 deletions)
View changed files
📝
spotify_player/src/auth.rs(+72 -37)📝
spotify_player/src/cli/client.rs(+17 -8)📝
spotify_player/src/client/handlers.rs(+18 -32)📝
spotify_player/src/client/mod.rs(+107 -69)📝
spotify_player/src/client/spotify.rs(+22 -19)📝
spotify_player/src/config/mod.rs(+2 -9)📝
spotify_player/src/main.rs(+27 -45)📝
spotify_player/src/state/mod.rs(+0 -5)📝
spotify_player/src/streaming.rs(+8 -16)📝
spotify_player/src/token.rs(+1 -0)📄 Description
Resolves #150
Summary
This PR adds new changes that make
spotify_playermore robust to network errors, which allows the application to re-initialize a new Spotify session and reconnect to a new streaming connection after the network errors are resolved.Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.