summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2017-11-18 18:46:42 +0000
committerMichaël Ball <michael.ball@gmail.com>2017-11-18 18:51:09 +0000
commit4f35ee0ce5b0a1450e66567001cb37e7467c0a41 (patch)
treede252eaacb3531f0a90dd352ef8925402be5a852
parenta1b29da6877a3a0f9e89802e10d432925d20ee8c (diff)
Increase number of similar tracks/artists to fetch.
-rw-r--r--lastfm_similarity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lastfm_similarity.py b/lastfm_similarity.py
index fdcc649..3df6241 100644
--- a/lastfm_similarity.py
+++ b/lastfm_similarity.py
@@ -78,7 +78,7 @@ class LastFMSimilarity(EventPlugin):
return "".join((self.LAST_FM_API_URI, request, "&api_key=",
self.API_KEY, "&format=json"))
- def _find_similar_tracks(self, trackname, artistname, mbid=None, limit=20):
+ def _find_similar_tracks(self, trackname, artistname, mbid=None, limit=50):
request = "".join(("?method=",
self.LAST_FM_API_METHODS["similar_tracks"]))
@@ -123,7 +123,7 @@ class LastFMSimilarity(EventPlugin):
else:
return []
- def _find_similar_artists(self, artistname, mbid=None, limit=20):
+ def _find_similar_artists(self, artistname, mbid=None, limit=40):
request = "".join(("?method=",
self.LAST_FM_API_METHODS["similar_artists"]))