Skip to content

Commit

Permalink
Merge pull request #139 from aramperes/full-track-playhistory
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsayleung authored Oct 17, 2020
2 parents 85b5983 + bfb4440 commit edcf26e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Renamed environmental variables to `RSPOTIFY_CLIENT_ID`, `RSPOTIFY_CLIENT_SECRET` and `RSPOTIFY_REDIRECT_URI` to avoid name collisions with other libraries that use OAuth2 ([#118](https://github.com/ramsayleung/rspotify/issues/118)).
- Fix typo in `user_playlist_remove_specific_occurrenes_of_tracks`, now it's `user_playlist_remove_specific_occurrences_of_tracks`.
- All fallible calls in the client return a `ClientError` rather than using `failure`.
- Changed type of `track` in `PlayHistory` to `FullTrack` ([#139](https://github.com/ramsayleung/rspotify/pull/139)).

## 0.10 (2020/07/01)

Expand Down
3 changes: 1 addition & 2 deletions src/model/playing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use serde::{Deserialize, Serialize};

use super::context::Context;
use super::track::FullTrack;
use super::track::SimplifiedTrack;
/// Current playing track
/// [get the users currently playing track](https://developer.spotify.com/web-api/get-the-users-currently-playing-track/)
#[derive(Clone, Debug, Serialize, Deserialize)]
Expand All @@ -20,7 +19,7 @@ pub struct Playing {
/// [play history object](https://developer.spotify.com/web-api/object-model/#play-history-object)
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct PlayHistory {
pub track: SimplifiedTrack,
pub track: FullTrack,
pub played_at: DateTime<Utc>,
pub context: Option<Context>,
}

0 comments on commit edcf26e

Please sign in to comment.