This commit is contained in:
Amr Hassan 2008-10-24 00:17:39 +00:00
parent fbe72ac182
commit a131d73735
2 changed files with 13 additions and 10 deletions

View file

@ -1,9 +1,12 @@
0.2.15: 0.2.16
* All the getTopTags and getTopTagsWithCounts return an empty sequence if failed instead of None.
0.2.15
* API Breakage, changed the design of Asynchronizer.async_call. * API Breakage, changed the design of Asynchronizer.async_call.
* Added: Artist.getTopTagsWithCounts, Track.getTopTagsWithCounts and User.getTopTagsWithCounts. * Added: Artist.getTopTagsWithCounts, Track.getTopTagsWithCounts and User.getTopTagsWithCounts.
* Added: Artist.getTopFansWithWeights, Track.getTopFansWithWeights. * Added: Artist.getTopFansWithWeights, Track.getTopFansWithWeights.
0.2.14: 0.2.14
* Changed the version numbering system. * Changed the version numbering system.
* Fixed Authentication and MD5 with non-ASCII characters (issue #7) * Fixed Authentication and MD5 with non-ASCII characters (issue #7)
* Created UserPlaylist class. * Created UserPlaylist class.
@ -12,7 +15,7 @@
* User.fetchPlaylist is now deprecated. * User.fetchPlaylist is now deprecated.
* Created UserPlaylistCreator class. * Created UserPlaylistCreator class.
0.2b13: 0.2b13
* fixed: User.get_friends limit parameter (issue #5) * fixed: User.get_friends limit parameter (issue #5)
* changed: using hashlib module instead of deprecated md5 module. * changed: using hashlib module instead of deprecated md5 module.

View file

@ -21,7 +21,7 @@
# http://code.google.com/p/pylast/ # http://code.google.com/p/pylast/
__name__ = 'pyLast' __name__ = 'pyLast'
__version__ = '0.2.15' __version__ = '0.2.16'
__doc__ = 'A Python interface to the Last.fm API.' __doc__ = 'A Python interface to the Last.fm API.'
__author__ = 'Amr Hassan' __author__ = 'Amr Hassan'
__email__ = 'amr.hassan@gmail.com' __email__ = 'amr.hassan@gmail.com'
@ -930,7 +930,7 @@ class Track(BaseObject, Cacheable, Taggable):
pairs = self.getTopTagsWithCounts(limit) pairs = self.getTopTagsWithCounts(limit)
if not pairs: if not pairs:
return None return []
list = [] list = []
for pair in pairs: for pair in pairs:
@ -945,7 +945,7 @@ class Track(BaseObject, Cacheable, Taggable):
doc = Request(self, 'track.getTopTags', self.api_key, params).execute() doc = Request(self, 'track.getTopTags', self.api_key, params).execute()
if not doc: if not doc:
return None return []
list = [] list = []
elements = doc.getElementsByTagName('tag') elements = doc.getElementsByTagName('tag')
@ -1209,7 +1209,7 @@ class Artist(BaseObject, Cacheable, Taggable):
pairs = self.getTopTagsWithCounts(limit) pairs = self.getTopTagsWithCounts(limit)
if not pairs: if not pairs:
return None return []
list = [] list = []
for pair in pairs: for pair in pairs:
@ -1224,7 +1224,7 @@ class Artist(BaseObject, Cacheable, Taggable):
doc = Request(self, 'artist.getTopTags', self.api_key, params).execute() doc = Request(self, 'artist.getTopTags', self.api_key, params).execute()
if not doc: if not doc:
return None return []
elements = doc.getElementsByTagName('tag') elements = doc.getElementsByTagName('tag')
list = [] list = []
@ -2607,7 +2607,7 @@ class User(BaseObject, Cacheable):
pairs = self.getTopTagsWithCounts(limit) pairs = self.getTopTagsWithCounts(limit)
if not pairs: if not pairs:
return None return []
list = [] list = []
for pair in pairs: for pair in pairs:
@ -2627,7 +2627,7 @@ class User(BaseObject, Cacheable):
doc = Request(self, 'user.getTopTags', self.api_key, params).execute() doc = Request(self, 'user.getTopTags', self.api_key, params).execute()
if not doc: if not doc:
return None return []
list = [] list = []
elements = doc.getElementsByTagName('tag') elements = doc.getElementsByTagName('tag')