Loading artist images from navidrome

This commit is contained in:
simojenki
2021-03-03 22:59:15 +11:00
parent ce6c1638fd
commit 4dae907826
8 changed files with 273 additions and 74 deletions

View File

@@ -377,9 +377,15 @@ describe("api", () => {
});
expect(artists[0]).toEqual(
getMetadataResult({
mediaCollection: [BLONDIE, BOB_MARLEY].map((it) => container({ id: `artist:${it.id}`, title: it.name })),
mediaCollection: [BLONDIE, BOB_MARLEY].map((it) => ({
itemType: "artist",
id: `artist:${it.id}`,
artistId: it.id,
title: it.name,
albumArtURI: it.image.small,
})),
index: 0,
total: 2
total: 2,
})
);
});
@@ -403,7 +409,7 @@ describe("api", () => {
container({ id: `album:${it.id}`, title: it.name })
),
index: 0,
total: BLONDIE.albums.length + BOB_MARLEY.albums.length
total: BLONDIE.albums.length + BOB_MARLEY.albums.length,
})
);
});
@@ -434,7 +440,7 @@ describe("api", () => {
}),
],
index: 2,
total: BLONDIE.albums.length + BOB_MARLEY.albums.length
total: BLONDIE.albums.length + BOB_MARLEY.albums.length,
})
);
});