From 3a14b62de4c187502c6713ff0db0819afe5ba209 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 22 Feb 2025 04:34:55 +0000 Subject: [PATCH] msg --- src/subsonic_music_library.ts | 2 ++ tests/subsonic.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/subsonic_music_library.ts b/src/subsonic_music_library.ts index 5010d6c..500dea6 100644 --- a/src/subsonic_music_library.ts +++ b/src/subsonic_music_library.ts @@ -148,6 +148,8 @@ export class SubsonicMusicLibrary implements MusicLibrary { artistId: artist.id, artistImageURL: [ artist.artistImageUrl, + // todo: subsonic.artistInfo should just return a valid image or undefined, then the music lib just chooses first undefined + // out of artist.image and artistInfo.image artistInfo.images.l, artistInfo.images.m, artistInfo.images.s, diff --git a/tests/subsonic.test.ts b/tests/subsonic.test.ts index ca15882..a38567c 100644 --- a/tests/subsonic.test.ts +++ b/tests/subsonic.test.ts @@ -255,7 +255,7 @@ export type ArtistWithAlbum = { album: Album; }; -describe("artistURN", () => { +describe("artistImageURN", () => { describe("when artist URL is", () => { describe("a valid external URL", () => { it("should return an external URN", () => {