Commit graph

148 commits

Author SHA1 Message Date
Amr Hassan 45eca0e8e4 * New release. 2011-03-12 00:00:42 +00:00
Amr Hassan 09c7d7238c * Fixed a typo in scrobble_many. 2011-01-25 12:57:23 +00:00
Amr Hassan e5228d410d * Added artist and album parameters to Library methods. (API BREAKAGE).
(Closes Issue #44)
2011-01-24 13:21:31 +00:00
Amr Hassan 52ce81743a * Fixed not using the limit on *.get_top_tags(limit). (Closes Issue #61) 2011-01-24 13:05:44 +00:00
Amr Hassan 96e90dfebf * Making use of the warnings module. (Closes Issue #59) 2011-01-22 01:27:59 +00:00
Amr Hassan 38aeed8570 * Hopefully, no non-string parameters should break requests now. (Should
close Issue #56)
2011-01-22 01:14:16 +00:00
Amr Hassan e882d38ffe * Fixed: Issue #56: update_now_playing() and scrobble() does not accept
integers where natural
2011-01-21 22:37:14 +00:00
Amr Hassan b267c90b82 * Further Error-proofing through pylast.NetworkError. 2011-01-21 22:33:34 +00:00
Amr Hassan 881d6abf3e * Fixed _Taggable.remove_tag. (Closes Issue #57) 2011-01-21 22:28:17 +00:00
Amr Hassan c7d4227b01 * New pylast.MalformedResponseError exception that fires off (hopefully)
on bad responses from Last.fm or network data corruption. (Closes Issue
#58)
2011-01-21 21:49:07 +00:00
Amr Hassan 5423322cd7 Fixed a bug in _Network.scrobble_many(...) with missing parameters 2011-01-11 07:59:46 +00:00
Amr Hassan 6b3185bf7b * Removed redundant Track.shout(...). (Closes Issue #54) 2011-01-06 15:18:51 +00:00
Amr Hassan c57a912305 * Fixed compatibility with Python 2.6. (Closes Issue #53) 2011-01-06 15:02:54 +00:00
Amr Hassan 8c145f0512 * Network objects are now serializable through the repr() function. 2011-01-06 06:20:49 +00:00
Amr Hassan 02ccb2b199 * Implemented the scrobbling protocol 2.0 through Network.scrobble(...),
Network.scrobble_many(...), and Network.update_now_playing(...) and
deprecating the old ways. Closes Issues #49 #50 #51.
2011-01-05 12:40:27 +00:00
Amr Hassan 4250670110 Fixed scrobbling responses on Python3 2011-01-05 08:24:12 +00:00
Amr Hassan bebf474aa9 * Taggable.add_tags(), Taggable.set_tags() and Taggable.remove_tags()
now only accept a list of tags [API BREAKAGE]. (Closes Issue #52)
2011-01-05 06:48:04 +00:00
Amr Hassan a3649bd1cb * properly_capitalized argument available for attributes that can be
retrieved from the webservices and replace the given (more likely)
miscapitalized ones. Closes Issue #37
2011-01-05 05:44:17 +00:00
Amr Hassan 0183d8b294 Fixed: Use __str__() for textual info about an object, and __repr__() for textual serializaion of the object that can be used to recreate it. 2011-01-05 05:29:46 +00:00
Amr Hassan d0344f40d4 * Now plays nice with Python3. (Hopefully) 2011-01-05 05:07:07 +00:00
Amr Hassan b7129a564b Changed the license to Apache 2 2010-08-22 07:09:38 +00:00
Amr Hassan 2882cdd457 Broken scrobbling BADAUTH response 2010-08-11 01:27:23 +00:00
Amr Hassan 155f98940d Fixed issue #40 2010-03-28 09:45:38 +00:00
Amr Hassan c0da0cc880 * Added Scrobbler.scrobble_many(...) method
* Fixed issue #38: Moved AuthenticatedUser.get_cover_image() to User.get_image() and all the other "user.getInfo" related methods to User as well.
* Fixed issue #39: Added PERIOD_7DAYS constant
2010-03-27 18:52:31 +00:00
Amr Hassan 4772a67b2e Fixed compatibility issue with libre.fm 2010-02-20 07:27:55 +00:00
Amr Hassan f3b4182317 Fixed scrobbling with webservices authentication 2010-02-19 06:34:27 +00:00
Amr Hassan 7a2fad0110 -- Fixed Issue #32\n-- Fixed Issue #33 2010-02-19 05:49:42 +00:00
Amr Hassan c2f8333c7c Fixed Libre.fm scrobbling. Now it actually works! It's weird that no one noticed. 2009-11-20 19:08:18 +00:00
Amr Hassan fbb869de1c fixed a smartass bug 2009-11-20 17:50:30 +00:00
Amr Hassan 066417c69b scrobble mode can be left out blank 2009-10-21 10:48:28 +00:00
Amr Hassan 312230e30b ran through pychecker and fixed several typos 2009-10-21 00:42:07 +00:00
Amr Hassan 33fb6190ae _BaseObject.__hash__() is now case-insensitive 2009-10-06 15:04:52 +00:00
Amr Hassan 7d91a9acac _BaseObject.__hash__() now includes a type indentifier 2009-10-06 14:37:31 +00:00
Amr Hassan 16c9e14a4d each _BaseObject descendant has a unique __hash__ now 2009-10-06 14:27:24 +00:00
Amr Hassan fa6093313a fixed minor issue in User.get_friends() 2009-10-06 12:54:16 +00:00
Amr Hassan 83bbe31b66 fixed and issue with authenticating through Network's constructor 2009-10-01 18:18:57 +00:00
Amr Hassan 586fcae541 Fixes issue #23 2009-09-08 15:06:43 +00:00
Amr Hassan ae32b1bb6d changed the output of Artist.get_similar and Track.get_similar to include the match value (API breakage) - Closes issue #22 2009-09-08 01:40:41 +00:00
Amr Hassan 3a9dd57492 fix scrobbling not worky 2009-09-02 05:02:54 +00:00
Amr Hassan bd1ce5ebaf added order to Artist.get_images() 2009-09-01 06:14:45 +00:00
Amr Hassan 1667f43454 Made logging optional per Network 2009-08-31 22:05:23 +00:00
Amr Hassan e092099bde 2009-08-31 04:57:13 +00:00
Amr Hassan d61fbb3a04 Enter v0.4 2009-08-31 04:18:37 +00:00
Amr Hassan a34a7ea6aa Closes issue #21: 'limit' support in get_loved_tracks 2009-08-30 20:42:16 +00:00
Amr Hassan 45092ec4f5 FIXED (hopefully): unicode issue in scrobbling 2009-08-18 23:02:15 +00:00
Amr Hassan 8d8063afe8 fixed sqlite caching 2009-08-04 20:20:34 +00:00
Amr Hassan 6acb1bfd38 fixed a typo 2009-08-03 09:04:11 +00:00
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 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 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 9b99975d5d 2009-02-02 15:16:34 +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 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
Amr Hassan 6107611b44 * all http values are properly encoded now. 2008-08-31 12:54:50 +00:00
Amr Hassan ec1304614e fixed #1, added an option to disable silent exception handling 2008-08-21 08:44:30 +00:00
Amr Hassan 4676e8ecd6 cleaning up documentation 2008-08-19 12:31:34 +00:00
Amr Hassan d5866dac1b 2008-08-19 12:28:07 +00:00
Amr Hassan b1ed3eef5b fixes 2008-08-19 10:28:55 +00:00
Amr Hassan 8a2dce339d gone beta 2008-08-19 07:07:26 +00:00
Amr Hassan 1adbe2dd4d 2008-08-17 18:13:50 +00:00