Commit graph

194 commits

Author SHA1 Message Date
hugovk 5a15b3b6a6 Fix params 2014-12-26 23:13:40 +02:00
hugovk 2e56084974 Remove asserts which can fail 2014-12-26 18:57:22 +02:00
hugovk 0a158e7238 Landscape.io fixes 2014-12-26 17:31:10 +02:00
hugovk 098b747d8b Merge remote-tracking branch 'upstream/master' 2014-12-24 16:57:15 +02:00
Peter Jeschke 813a72b61a Update pylast.py
_get_proxy is undefined in _Request, the network was missing here.
2014-12-23 11:02:42 +01:00
hugovk 3e4127bf6a Merge remote-tracking branch 'upstream/master'
Conflicts:
	test_pylast.py
2014-12-18 21:03:03 +02:00
Hugo bd9c351b21 Add from/to parameters to get_recent_tracks() 2014-10-25 15:52:01 +03:00
Hugo 56d1f2791f Fix chart tests that failed due to date ranges 2014-09-11 15:29:25 +03:00
Hugo bc7433990b Fix comparison with None for artist, album and event, with test. For #97. 2014-09-11 15:07:02 +03:00
Hugo e117a2b57c Add artist.get_band_members() with tests 2014-08-27 00:16:59 +03:00
hugovk 862ae11cfa Fix opus comparison with None 2014-08-18 16:24:01 +03:00
hugovk 1e3551e611 Bump version to 1.0.0 2014-07-29 17:43:44 +03:00
hugovk 1453e5137c Add event tests and fix a bug they found 2014-04-07 13:12:40 +03:00
hugovk 9243e98b94 Test some tag functions 2014-04-07 12:29:50 +03:00
hugovk 5f69aa591c Add cacheable parameter to get_neighbours() 2014-04-07 11:49:40 +03:00
hugovk adbe8a8500 Refactor network names. Add some tag tests. Add stress test option. Add extra Python versions as allowed failures to Travis. 2014-04-04 21:53:45 +03:00
hugovk 20b9bdedd2 Python 3 fix: Unicode-objects must be encoded before hashing 2014-03-12 13:43:41 +02:00
hugovk 181ad7b6c9 Remove deprecated .has_key() 2014-03-12 13:16:23 +02:00
hugovk e09c480980 Move chart methods out of _BaseObject and into their own _Chartable so they can only be used by relevant classes (Group, Tag, User) 2014-03-11 17:02:13 +02:00
hugovk 2254430b39 Remove duplication into _extract_top_albums(doc, network) 2014-03-08 01:13:08 +02:00
hugovk 2235899c98 Remove duplication into _extract_top_artists(doc, network) 2014-03-08 00:53:31 +02:00
hugovk c3d99385ff Re-add get_weekly_album_charts(), get_weekly_artist_charts() and get_weekly_charts() helper functions 2014-03-07 20:22:14 +02:00
hugovk 4c4e3bfbba Move duplication into get_bio(), keeping existing get_bio_XXX() to call it 2014-03-07 16:01:54 +02:00
hugovk 4c94c8e53f Reinstate get_wiki_published_date(), get_wiki_summary() and get_wiki_content() as they may already be used by third parties. Add command-line options to the test. 2014-03-07 14:44:19 +02:00
hugovk 46b86b57da Create abstract, internal _Opus class for common stuff used by Album and Track 2014-03-07 14:04:37 +02:00
hugovk d3dba1475a Refactor and mark artist.getimages as deprecated 2014-03-07 09:41:21 +02:00
hugovk 342bb94045 Refactor get_wiki things to remove duplication 2014-03-06 23:05:23 +02:00
hugovk ac87cee29d Refactor shouts to duplicate code 2014-03-06 18:11:39 +02:00
hugovk 7cb8a654ec Move get_wiki_published_date(), get_wiki_summary(), get_wiki_content() up to _BaseObject to remove duplication in Album and Track. Already has test cases. 2014-03-06 16:26:50 +02:00
hugovk 0747d5d20e Move share() up to _BaseObject, removing duplication in Artist, Event and Track 2014-03-06 16:21:19 +02:00
hugovk caea5e129a Move get_top_fans up to _BaseObject, removing duplication in Artist and Track 2014-03-06 15:23:33 +02:00
hugovk 73cf5b3068 Move weekly charts getters to _BaseObject, removes duplication between group, tag and user 2014-03-06 14:30:02 +02:00
hugovk 6301a5c670 Add _get_things to remove duplication 2014-03-06 11:42:20 +02:00
hugovk 1d532c0363 Run pyflakes and pep8 and update 2014-03-05 18:11:57 +02:00
hugovk 779af598db Refactor to include limit parameter to reduce bandwidth\n\nRefactor calls to chart.getTopArtists, chart.getTopTracks, tag.getTopTags and user.getTopTags to include the limit parameter (where available) to reduce the size of data sent by Last.fm.\n\nFor example, getting limit=1 can reduce receiving 101 items to 1, making the test take 0.5s rather than 1.2s.\n\nAlso return a list of TopItems rather than just items, and add cacheable parameter. 2014-03-05 10:29:16 +02:00
hugovk 3d169178ae Implement artist/album/track.getPlaylinks, closes #74 2014-03-05 00:41:26 +02:00
hugovk daa590b11d Implement geo.getMetroHypeTrackChart, geo.getMetroTrackChart and geo.getMetroUniqueTrackChart. Closes #44. 2014-03-04 18:56:28 +02:00
hugovk a97c584059 Implement geo.getMetroUniqueArtistChart for #44 2014-03-04 18:17:37 +02:00
hugovk 2938255e2f Implement geo.getMetroHypeArtistChart and refactor 2014-03-04 18:12:56 +02:00
hugovk c587600e16 Add from and to dates for artist charts, for #44 2014-03-04 17:58:50 +02:00
hugovk a254a9fd0c Implement geo.getMetroWeeklyChartlist and geo.getMetroArtistChart for #44 2014-03-04 17:49:56 +02:00
hugovk f7e5645ed6 Implement geo.getMetros for #44 2014-03-04 17:11:50 +02:00
hugovk 748f66ecc3 Implement geo.getTopArtists for #44 2014-03-04 16:29:41 +02:00
hugovk 9ca4109f22 Implement geo.getTopTracks for #44 2014-03-04 16:14:52 +02:00
hugovk 2d11699df0 Implement firs Geo function, for #44 2014-03-04 15:46:00 +02:00
hugovk 1d1eba5af7 Add cacheable parameter for 16 functions that call _collect_nodes(). There's some 112 that call _request() and some may be made cacheable, but they can be done if someone asks for it. Closes #88. 2014-03-04 13:47:43 +02:00
hugovk 1fc02a33c5 Jiggle the tests to increase coverage a bit 2014-03-04 10:42:59 +02:00
hugovk 9edfcb5745 Extra tests for artist's bio, track/album's wiki content/summary. Closes #87. 2014-03-04 09:24:20 +02:00
hugovk cd10d53a82 Partial fix for #87 2014-03-03 23:03:45 +02:00
hugovk c15923e4cd get_upcoming_events() no longer returns events with venue IDs. Also fixed/tested other events functions, and removed duplication. Closes #78. 2014-03-03 18:41:07 +02:00