Remove dead Last.fm attributes: releasedate in album.getInfo
This commit is contained in:
parent
0d4f674ac7
commit
c303fd0139
|
@ -1718,12 +1718,6 @@ class Album(_Opus):
|
||||||
def __init__(self, artist, title, network, username=None):
|
def __init__(self, artist, title, network, username=None):
|
||||||
super(Album, self).__init__(artist, title, network, "album", username)
|
super(Album, self).__init__(artist, title, network, "album", username)
|
||||||
|
|
||||||
def get_release_date(self):
|
|
||||||
"""Returns the release date of the album."""
|
|
||||||
|
|
||||||
return _extract(self._request(
|
|
||||||
self.ws_prefix + ".getInfo", cacheable=True), "releasedate")
|
|
||||||
|
|
||||||
def get_cover_image(self, size=COVER_EXTRA_LARGE):
|
def get_cover_image(self, size=COVER_EXTRA_LARGE):
|
||||||
"""
|
"""
|
||||||
Returns a uri to the cover image
|
Returns a uri to the cover image
|
||||||
|
|
|
@ -1879,18 +1879,6 @@ class TestPyLast(unittest.TestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertGreater(count, 21)
|
self.assertGreater(count, 21)
|
||||||
|
|
||||||
@handle_lastfm_exceptions
|
|
||||||
def test_album_rel_date(self):
|
|
||||||
# Arrange
|
|
||||||
album = pylast.Album("Test Artist", "Test Release", self.network)
|
|
||||||
|
|
||||||
# Act
|
|
||||||
date = album.get_release_date()
|
|
||||||
|
|
||||||
# Assert
|
|
||||||
self.skip_if_lastfm_api_broken(date)
|
|
||||||
self.assertIn("2011", date)
|
|
||||||
|
|
||||||
@handle_lastfm_exceptions
|
@handle_lastfm_exceptions
|
||||||
def test_album_tracks(self):
|
def test_album_tracks(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
|
|
Loading…
Reference in a new issue