From 4f35ee0ce5b0a1450e66567001cb37e7467c0a41 Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Sat, 18 Nov 2017 18:46:42 +0000 Subject: Increase number of similar tracks/artists to fetch. --- lastfm_similarity.py | 4 ++-- 1 file 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"])) -- cgit v1.2.3