Polyfill artist id in scrobble activity

This commit is contained in:
Claudio Ortolina
2025-04-25 16:36:57 +01:00
parent 9cf19b7f75
commit 35a792df8a
2 changed files with 49 additions and 6 deletions
+9
View File
@@ -35,6 +35,15 @@ defmodule MusicLibrary.Artists do
q |> Repo.all() |> MapSet.new()
end
def get_all_artist_pairs do
q =
from ar in ArtistRecord,
distinct: true,
select: %{artist_id: ar.musicbrainz_id, record_id: ar.record_id}
q |> Repo.all()
end
defp get_collected_artist_ids do
q =
from ar in ArtistRecord,