mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-10 04:57:45 +00:00
bump lastfm similar artists result limit from 100 -> 250
This commit is contained in:
parent
fed62bf7f4
commit
64bb4f75df
@ -12,7 +12,7 @@ def fetch_similar_artists(name: str):
|
|||||||
Fetches similar artists from Last.fm
|
Fetches similar artists from Last.fm
|
||||||
"""
|
"""
|
||||||
url = f"https://ws.audioscrobbler.com/2.0/?method=artist.getsimilar&artist={name}&api_key=" \
|
url = f"https://ws.audioscrobbler.com/2.0/?method=artist.getsimilar&artist={name}&api_key=" \
|
||||||
f"{settings.Keys.LASTFM_API_KEY}&format=json&limit=100"
|
f"{settings.Keys.LASTFM_API_KEY}&format=json&limit=250"
|
||||||
|
|
||||||
response = requests.get(url, timeout=10)
|
response = requests.get(url, timeout=10)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user