Commit graph

258 commits

Author SHA1 Message Date
Amr Hassan
3d6c57a71b Refactored the code for caching requests, and added the support of sqlite3 if the module is present. If not installed, shelve module would be used instead. 2009-07-16 03:04:21 +00:00
Amr Hassan
adc785ade4 fixed some unicode problems with hashlib, i hope. 2009-06-29 09:01:00 +00:00
Amr Hassan
a34b8b558e changed versioning system to include svn revision. 2009-06-26 07:13:45 +00:00
Amr Hassan
5baa605bd2 * uses shelve for caching 2009-06-26 05:53:12 +00:00
Amr Hassan
3a6d7d9fb1 2009-05-12 13:27:40 +00:00
Amr Hassan
d9148ac382 * testing something... 2009-04-05 04:11:52 +00:00
Amr Hassan
773839ff70 * testing something... 2009-04-05 03:58:55 +00:00
Amr Hassan
a8e62d7bb0 * testing something... 2009-04-05 03:55:32 +00:00
Amr Hassan
fd53d5894f * removed all encoding from string and unicode objects. 2009-03-28 20:11:08 +00:00
Amr Hassan
d7f83f49cf * fixed Track.get_album() (issue #15) 2009-03-13 15:12:08 +00:00
Amr Hassan
396d89ee90 * added PlayedTrack.get_timestamp() 2009-03-09 14:55:24 +00:00
Amr Hassan
7c6119ecbc * 0.3.1: User.get_recent_tracks() now returns a sequence of PlayedTrack items that provide the playback date as well as the track itself. 2009-03-09 13:46:52 +00:00
Amr Hassan
52aabb750a * better setup script 2009-02-26 05:09:47 +00:00
Amr Hassan
7f9f311034 * using SHA-1 for cache keys. 2009-02-25 20:23:31 +00:00
Amr Hassan
a8897bb38b * +Artist.get_mbid() 2009-02-23 08:35:09 +00:00
Amr Hassan
528de38254 * +scrobbling support 2009-02-18 17:27:29 +00:00
Amr Hassan
8f237907c8 * code clean-up 2009-02-16 11:30:51 +00:00
Amr Hassan
cfe71efdd0 * fixed an issue in Track.get_playcount() and Track.is_streamable() 2009-02-16 11:25:40 +00:00
Amr Hassan
0854653089 * fixed: session key generation broken (issue #14) 2009-02-07 17:51:10 +00:00
Amr Hassan
c61b15b129 * fixed issue #13
* fixed proxy uage
* added: pylast.clear_cache() method
2009-02-04 07:03:00 +00:00
Amr Hassan
ce0a46d036 \ 2009-02-02 15:18:51 +00:00
Amr Hassan
9b99975d5d 2009-02-02 15:16:34 +00:00
Amr Hassan
0e78d9344e now with documentation 2009-02-02 15:14:39 +00:00
Amr Hassan
41ce2c6489 0.3a in the trunk now. 2009-02-02 14:53:42 +00:00
Amr Hassan
27947fbb9d 0.2.18
* Track.getAlbum doesn't crash when the album could not be determined.
 * Most of User functions now exist in the new AuthenticatedUser due to a web services limitation.
 * Track.getImage is removed, it's the same as Track.getAlbum().getImage().
2008-11-22 03:32:58 +00:00
Amr Hassan
903c9b1622 0.2.17
* All the getTopTags and getTopTagsWithCounts return an empty sequence if failed instead of None.
 * toStr() is now less crashy.
 * fixed User.getPastEvents.
 * new: User.compareWithUser, User.getRecommendedEvents, Library.addAlbum, Library.addArtist, Library.addTrack.
 * created AlbumSearch class.
2008-10-30 01:01:49 +00:00
Amr Hassan
93378fb3ef * toStr() is now less crashy. 2008-10-26 23:07:12 +00:00
Amr Hassan
a131d73735 nomsg 2008-10-24 00:17:39 +00:00
Amr Hassan
fbe72ac182 0.2.15:
* API Breakage, changed the design of Asynchronizer.async_call.
 * Added: Artist.getTopTagsWithCounts, Track.getTopTagsWithCounts and User.getTopTagsWithCounts.
 * Added: Artist.getTopFansWithWeights, Track.getTopFansWithWeights.
2008-10-22 17:38:12 +00:00
Amr Hassan
e4a2ffc873 * redesigned Asynchronizer.async_call (API Breakage) 2008-10-22 13:50:43 +00:00
Amr Hassan
39f6fcae7f 0.2.14:
* Changed the version numbering system.
 * Fixed Authentication and MD5 with non-ASCII characters (issue #7)
 * Created UserPlaylist class.
 * User.getPlaylistIDs is now deprecated.
 * track.addToPlaylist is now deprecated.
 * User.fetchPlaylist is now deprecated.
 * Created UserPlaylistCreator class.
2008-10-22 13:01:47 +00:00
Amr Hassan
5ba4fb81b9 nomsg 2008-10-20 03:12:41 +00:00
Amr Hassan
2d89955c79 0.2.14 2008-10-20 01:56:52 +00:00
Amr Hassan
38b1f43100 nomsg 2008-10-19 23:19:13 +00:00
Amr Hassan
e916f791cf 0.2.14 2008-10-19 22:48:59 +00:00
Amr Hassan
8e390ea93e 0.2b13:
* fixed: User.get_friends limit parameter (issue #5)
 * changed: using hashlib module instead of deprecated md5 module.
2008-10-16 15:29:54 +00:00
Amr Hassan
ae41e1a641 0.2b12
* fixed: some unicode problems.
 * fix: a typo in the function name Exceptionable.clear_errors()
 * fixed: User.fetchPlaylist (#3)
 * api change: User.getPlaylistsIDs is now User.getPlaylistsData, and User.getPlaylistsIDs returns a list of IDs now.
2008-10-16 13:14:36 +00:00
Amr Hassan
ea21ee0b7f * fix: a typo in the function name Exceptionable.clear_errors() 2008-10-15 06:46:00 +00:00
Amr Hassan
706a34df54 0.2b11 2008-10-14 03:39:53 +00:00
Amr Hassan
183bdb9434 0.2b10 2008-09-28 06:07:17 +00:00
Amr Hassan
7e203ee5a2 * fixed: crashes when adding a job to Asynchronizer and starting it when it already started. 2008-09-12 15:49:13 +00:00
Amr Hassan
ace8109ad7 2008-09-09 20:22:22 +00:00
Amr Hassan
74b1120745 2008-09-09 19:29:38 +00:00
Amr Hassan
a369c6f0d1 * added a setup.py script 2008-09-09 19:22:13 +00:00
Amr Hassan
7d7b06d5d2 * Asynchronizer.async_call now accepts None as callback.
* moved all the tag related functions to a separate Taggable class.
 * added Taggable.setTags
2008-09-09 15:05:01 +00:00
Amr Hassan
ba6699cc31 * Added Track.getWikiPublishedDate, Track.getSummary, Track.getContent.
* fixes
2008-09-04 14:58:11 +00:00
Amr Hassan
e39fc5ab89 * fixes 2008-09-04 14:18:16 +00:00
Amr Hassan
d625054e59 * Moved changes to an external file "changes.txt".
* Added new webservices as: Track.getId, Track.getDuration, Track.getListenerCount, Track.getPlayCount, Track.getAlbumName, Track.getAlbum, Track.getImage, Event.share.
* Reverted where all objects retrieve all available metadata on the server from the server, now optional.
2008-09-04 14:11:12 +00:00
Amr Hassan
5fe0d34fb6 * Added Track.getArtistName.
* Added Album.getArtistName.
* Added numerous functions to User, Making use of the new User.getInfo webservice.
* Every object now retrieves all the metadata from the webservices even the trivial ones like the album name or artist for proper casing. Use the object's attributes (like Album.artist_name and Album.title instead of Album.getArtistName() and Album.getTitle() if you can't afford the delay caused by retrieving the data from a remote server.
2008-08-31 23:03:48 +00:00
Amr Hassan
de73c5100d * Added a little work-around on python's threading.Thread to make Asynchronizer objects able to restart more than once. 2008-08-31 15:18:01 +00:00