Skip to content

Commit

Permalink
Fix track add (#529)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Oldham <[email protected]>
  • Loading branch information
SO9010 and Samuel Oldham authored Sep 25, 2024
1 parent 4dfa43d commit 3f543d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion psst-gui/src/ui/playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ fn cover_widget(size: f64) -> impl Widget<NowPlaying> {

fn playback_origin_icon(origin: &PlaybackOrigin) -> &'static SvgIcon {
match origin {
// TODO add home widget
PlaybackOrigin::Home => &icons::HOME,
PlaybackOrigin::Library => &icons::HEART,
PlaybackOrigin::Album { .. } => &icons::ALBUM,
Expand Down
6 changes: 3 additions & 3 deletions psst-gui/src/webapi/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ impl WebApi {
}

fn put(&self, path: impl Display, base_url: Option<&str>) -> Result<Request, Error> {
self.request("GET", base_url.unwrap_or("api.spotify.com"), path)
self.request("PUT", base_url.unwrap_or("api.spotify.com"), path)
}

fn post(&self, path: impl Display, base_url: Option<&str>) -> Result<Request, Error> {
self.request("GET", base_url.unwrap_or("api.spotify.com"), path)
self.request("POST", base_url.unwrap_or("api.spotify.com"), path)
}

fn delete(&self, path: impl Display, base_url: Option<&str>) -> Result<Request, Error> {
self.request("GET", base_url.unwrap_or("api.spotify.com"), path)
self.request("DELETE", base_url.unwrap_or("api.spotify.com"), path)
}

fn with_retry(f: impl Fn() -> Result<Response, Error>) -> Result<Response, Error> {
Expand Down

0 comments on commit 3f543d9

Please sign in to comment.