Where possible, link scrobbled artists to artist page

This commit is contained in:
Claudio Ortolina
2024-12-10 14:13:50 +03:00
parent 5c30a052fa
commit 9e57103842
4 changed files with 29 additions and 7 deletions
+6
View File
@@ -100,6 +100,12 @@ defmodule MusicLibrary.Records do
Repo.one!(q)
end
def get_all_artist_ids do
q = from ar in ArtistRecord, distinct: true, select: ar.musicbrainz_id
Repo.all(q)
end
def get_artist_records(musicbrainz_id) do
q =
from r in Record,