Update docs

This commit is contained in:
Hugo 2019-02-27 19:56:29 +02:00
parent da473448f4
commit 2284dcf580
2 changed files with 6 additions and 3 deletions

View file

@ -10,10 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Extract username from session via new * Extract username from session via new
`SessionKeyGenerator.get_web_auth_session_key_username` ([#290]) `SessionKeyGenerator.get_web_auth_session_key_username` ([#290])
* `User.get_track_scrobbles` ([#298])
### Deprecated ### Deprecated
* `User.get_artist_tracks` ([#298]) * `User.get_artist_tracks`. Use `User.get_track_scrobbles` as a partial replacement.
([#298])
## [3.0.0] - 2019-01-01 ## [3.0.0] - 2019-01-01
### Added ### Added

View file

@ -2239,7 +2239,8 @@ class User(_BaseObject, _Chartable):
warnings.warn( warnings.warn(
"User.get_artist_tracks is deprecated and will be removed in a future " "User.get_artist_tracks is deprecated and will be removed in a future "
"version: https://github.com/pylast/pylast/issues/298", "version. User.get_track_scrobbles is a partial replacement. "
"See https://github.com/pylast/pylast/issues/298",
DeprecationWarning, DeprecationWarning,
stacklevel=2, stacklevel=2,
) )
@ -2535,7 +2536,7 @@ class User(_BaseObject, _Chartable):
def get_track_scrobbles(self, artist, track, cacheable=False): def get_track_scrobbles(self, artist, track, cacheable=False):
""" """
Get a list of scrobbles of this tracks by this artist scrobbled by this user, Get a list of this user's scrobbles of this artist's track,
including scrobble time. including scrobble time.
""" """