mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
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#576
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/15
Author: @aome510
Created: 10/17/2021
Status: ✅ Merged
Merged: 10/17/2021
Merged by: @aome510
Base:
master← Head:14-upgrade-rspotify📝 Commits (10+)
e403594update dependenciesfd5e29afix the errors happening b/c of thelibrespotlibraries updatee11043cmigraterspotifyto a new version inplayer.rsc5de7b1replaceget_with ``2c93765use namespace for variables and functions from other modules inplayer.rs5afaademodifytoken::get_tokento returnrspotify::Tokeninstead of a custom Tokenef2bf31addclient::spotify.rsmodule implementing a Spotify client on top ofrspotifyclient traits5742eddaddclient::handlersimplement event handling functionse341aaerewrite majority of client's handling functions withrspotify v0.114c44d9cmodifystate::{Track,Album,Artist}to ensure that theidfield is not None📊 Changes
21 files changed (+2057 additions, -2623 deletions)
View changed files
📝
Cargo.lock(+612 -1181)📝
spotify_player/Cargo.toml(+22 -21)📝
spotify_player/src/auth.rs(+1 -1)➖
spotify_player/src/client.rs(+0 -997)➕
spotify_player/src/client/handlers.rs(+167 -0)➕
spotify_player/src/client/mod.rs(+691 -0)➕
spotify_player/src/client/spotify.rs(+149 -0)📝
spotify_player/src/connect.rs(+11 -10)📝
spotify_player/src/event/mod.rs(+25 -36)📝
spotify_player/src/event/popup.rs(+37 -41)📝
spotify_player/src/event/window.rs(+62 -66)📝
spotify_player/src/main.rs(+7 -11)📝
spotify_player/src/state/mod.rs(+1 -1)📝
spotify_player/src/state/player.rs(+204 -177)📝
spotify_player/src/state/ui.rs(+9 -11)📝
spotify_player/src/token.rs(+18 -32)📝
spotify_player/src/ui/context.rs(+16 -15)📝
spotify_player/src/ui/mod.rs(+7 -8)📝
spotify_player/src/ui/popup.rs(+2 -2)📝
spotify_player/src/ui/search.rs(+1 -5)...and 1 more files
📄 Description
Brief description of changes
rspotifytov0.11.2librespottov0.3.0(now a single library instead of multiplelibrespot-*libraries)client.rsand replace with aclientfolder module, which includes:client/mod.rs: consists ofclient::Client's definition and its method implementationsclient/handlers.rs: consists of functions that handle player events, client requests, etcclient/spotify.rs: consists ofclient::Spotify's (a client to interact with Spotify APIs) definition and its method implementationsclient/mod.rs:rspotify's async functionsrspotifytype-safe item's ID (TrackId,AlbumId, etc)state::{Track,Album,Artist,Playlist}to be always in a valid state (having a validid).In other words, parsing from a
rspotify's item can possible be fail (e.grspotify::SImplifiedAlbumtostate::Album)get_Xmethod in a struct withXto follow idomatic Rust🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.