Include artist information in all albums feed
This commit is contained in:
+10
-2
@@ -54,9 +54,17 @@ defmodule LastFm.Feed do
|
||||
def all_albums do
|
||||
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ defmodule LastFm.FeedTest do
|
||||
|
||||
assert [
|
||||
%{
|
||||
artist: @track_two.artist,
|
||||
album: @track_two.album,
|
||||
cover_url: @track_two.cover_url,
|
||||
scrobbled_at_uts: @track_two.scrobbled_at_uts,
|
||||
|
||||
Reference in New Issue
Block a user