Integrate refresh of Last.fm data (both per artist and batch)

This commit is contained in:
Claudio Ortolina
2026-03-01 09:46:27 +00:00
parent 84323e5732
commit 6836cf5c9e
8 changed files with 146 additions and 6 deletions
+6
View File
@@ -22,4 +22,10 @@ defmodule MusicLibrary.Artists.Batch do
Artists.refresh_wikipedia_data_async(artist_info)
end)
end
def refresh_lastfm_data do
Batch.run_on_all(from(r in ArtistInfo), "artist_info", fn artist_info ->
Artists.fetch_lastfm_data_async(artist_info.id)
end)
end
end