Added tracks to db, beginning to get playlist creation

This commit is contained in:
Connor Johnstone
2026-03-02 22:20:35 -05:00
parent 4a388c6637
commit 6a16cb1395
4 changed files with 129 additions and 23 deletions

View File

@@ -50,7 +50,7 @@ impl LastfmClient {
artist_mbid: &str,
) -> Result<Vec<SimilarArtist>, Box<dyn std::error::Error>> {
let url = format!(
"{}?method=artist.getSimilar&mbid={}&api_key={}&format=json",
"{}?method=artist.getSimilar&mbid={}&api_key={}&limit=500&format=json",
BASE_URL, artist_mbid, self.api_key
);
let body: String = ureq::get(&url).call()?.body_mut().read_to_string()?;