Skip to content

Commit

Permalink
updated rpspotify to 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStjernholm committed Feb 27, 2024
1 parent f89e2e9 commit 2ae4c00
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 41 deletions.
87 changes: 49 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dotenv = "0.15.0"
lazy_static = "1.4.0"
rand = "0.8.5"
regex = "1.5.5"
rspotify = "0.11.6"
rspotify = "0.12.0"
serde_json = "1.0.79"
url = "2.3.1"
serde = "1.0.152"
Expand Down
4 changes: 2 additions & 2 deletions src/sources/spotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl Spotify {
.map_err(|_| ParrotError::Other("track ID contains invalid characters"))?;

let track = spotify
.track(track_id)
.track(track_id, None)
.await
.map_err(|_| ParrotError::Other("failed to fetch track"))?;

Expand All @@ -112,7 +112,7 @@ impl Spotify {
.map_err(|_| ParrotError::Other("album ID contains invalid characters"))?;

let album = spotify
.album(album_id)
.album(album_id, None)
.await
.map_err(|_| ParrotError::Other("failed to fetch album"))?;

Expand Down

0 comments on commit 2ae4c00

Please sign in to comment.