Commit graph

173 commits

Author SHA1 Message Date
hugovk 16079468ab Fix getting now playing for user with no scrobbles. Closes #81. 2014-03-01 16:57:29 +02:00
hugovk f59d2cc680 Fix comparison of User to other types. Closes #75. 2014-03-01 16:44:13 +02:00
hugovk 5324aacd83 Apply typo patch, closes #85. 2014-03-01 16:25:19 +02:00
hugovk 50bb692383 Add track.unlove, closes #65 2014-03-01 15:57:00 +02:00
hugovk 56f3666ced If no country, return None rather than Country class. Fixes http://stackoverflow.com/q/14609467/724176 2014-03-01 12:36:35 +02:00
hugovk 6d5c818ad0 Fix up some missing stuff after grafting 2014-02-28 11:20:01 +02:00
hugovk 552c45f18f Get user's registration date (and as a UNIX timestamp) 2014-02-27 20:14:32 +02:00
hugovk 71bef027c4 Merge pull request #1 from inversion/master
Merging event changes
2014-02-26 19:54:44 +02:00
hugovk 16482faed1 Add library.removeScrobble 2014-02-26 13:41:35 +02:00
hugovk b48f56badf Bug fix: http://stackoverflow.com/a/5542465/724176 2014-02-26 13:16:28 +02:00
Andrew Moss eadce48315 fixed bug wherein empty elements would make get_venue() crash 2013-12-27 10:08:50 +00:00
Andrew Moss e9a25606a0 Merge branch 'master' of github.com:inversion/pylast 2013-12-26 23:18:54 +00:00
Andrew Moss c8216a139e Allow getting venue info through Event.get_venue() as a workaround until
the Venue.getInfo API call is added to Last.fm. Changed version to 0.6
in setup.py and pylast.py to reflect update.
2013-12-26 23:16:55 +00:00
Andrew Moss 88f5b5e6b9 Allow getting venue info through Event.get_venue() as a workaround until the Venue.getInfo API call is added to Last.fm 2013-12-26 23:11:23 +00:00
Matt Jeffery bb33663472 replace '&' with & when it is not in a character entity (approximation) 2013-03-01 20:14:18 +00:00
Matt Jeffery e2cc69a7e8 works with CDATA tags 2013-03-01 19:38:41 +00:00
Hugo 78aac5c437 Added user.getArtistTracks 2013-01-24 19:37:02 +02:00
Elizabeth J. Myers 7fadea93bd whitespace cleanup. no functional change. 2013-01-16 11:21:55 -06:00
Elizabeth J. Myers 04cf7f7e25 Add support for user nowplaying to several classes. 2013-01-16 11:19:41 -06:00
Elizabeth J. Myers 0400a87b04 Bloop 2013-01-16 11:18:29 -06:00
Lukas Lipka 79a43919cc Add support for chart artists/tracks. 2012-03-10 15:09:42 +01:00
Lukas Lipka ad525bdd8b Import pylast-0.5.11 2012-03-10 14:50:47 +01:00
Lukas Lipka a6b1f50f2e Initial import. 2012-03-10 14:24:59 +01:00
Amr Hassan 240483d72f Closes Issue #71 2011-09-30 23:02:43 +02:00
Amr Hassan 6508bc132a * New release. 2011-03-12 14:32:06 +00:00
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