Add library.removeArtist, closes #84
This commit is contained in:
parent
880e160f64
commit
7eb640fa88
2 changed files with 37 additions and 3 deletions
11
pylast.py
11
pylast.py
|
@ -2019,6 +2019,15 @@ class Library(_BaseObject):
|
|||
|
||||
self._request("library.addAlbum", False, params)
|
||||
|
||||
def remove_album(self, album):
|
||||
"""Remove an album from this library."""
|
||||
|
||||
params = self._get_params()
|
||||
params["artist"] = album.get_artist().get_name()
|
||||
params["album"] = album.get_name()
|
||||
|
||||
self._request("library.removeAlbum", False, params)
|
||||
|
||||
def add_artist(self, artist):
|
||||
"""Add an artist to this library."""
|
||||
|
||||
|
@ -3932,7 +3941,7 @@ class Scrobbler(object):
|
|||
|
||||
def report_now_playing(self, artist, title, album = "", duration = "", track_number = "", mbid = ""):
|
||||
|
||||
_deprecation_warning("DeprecationWarning: Use Netowrk.update_now_playing(...) instead")
|
||||
_deprecation_warning("DeprecationWarning: Use Network.update_now_playing(...) instead")
|
||||
|
||||
params = {"s": self._get_session_id(), "a": artist, "t": title,
|
||||
"b": album, "l": duration, "n": track_number, "m": mbid}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue