Include artist information in all albums feed

This commit is contained in:
Claudio Ortolina
2025-03-11 08:48:17 +00:00
parent ec10447ca0
commit 0020687f7b
2 changed files with 11 additions and 2 deletions
+10 -2
View File
@@ -54,9 +54,17 @@ defmodule LastFm.Feed do
def all_albums do def all_albums do
m = [ m = [
{ {
{:"$1", %{scrobbled_at_label: :"$2", album: :"$3", cover_url: :"$4"}}, {:"$1", %{scrobbled_at_label: :"$2", album: :"$3", cover_url: :"$4", artist: :"$5"}},
[], [],
[%{scrobbled_at_uts: :"$1", scrobbled_at_label: :"$2", album: :"$3", cover_url: :"$4"}] [
%{
scrobbled_at_uts: :"$1",
scrobbled_at_label: :"$2",
album: :"$3",
cover_url: :"$4",
artist: :"$5"
}
]
} }
] ]
+1
View File
@@ -65,6 +65,7 @@ defmodule LastFm.FeedTest do
assert [ assert [
%{ %{
artist: @track_two.artist,
album: @track_two.album, album: @track_two.album,
cover_url: @track_two.cover_url, cover_url: @track_two.cover_url,
scrobbled_at_uts: @track_two.scrobbled_at_uts, scrobbled_at_uts: @track_two.scrobbled_at_uts,