mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Fix bug navigating from album to artist (#47)
This commit is contained in:
@@ -268,7 +268,7 @@ export const album = (bonobUrl: URLBuilder, album: AlbumSummary) => ({
|
|||||||
itemType: "album",
|
itemType: "album",
|
||||||
id: `album:${album.id}`,
|
id: `album:${album.id}`,
|
||||||
artist: album.artistName,
|
artist: album.artistName,
|
||||||
artistId: album.artistId,
|
artistId: `artist:${album.artistId}`,
|
||||||
title: album.name,
|
title: album.name,
|
||||||
albumArtURI: defaultAlbumArtURI(bonobUrl, album).href(),
|
albumArtURI: defaultAlbumArtURI(bonobUrl, album).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ describe("album", () => {
|
|||||||
albumArtURI: defaultAlbumArtURI(bonobUrl, someAlbum).href(),
|
albumArtURI: defaultAlbumArtURI(bonobUrl, someAlbum).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artist: someAlbum.artistName,
|
artist: someAlbum.artistName,
|
||||||
artistId: someAlbum.artistId,
|
artistId: `artist:${someAlbum.artistId}`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1168,7 +1168,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
@@ -1205,7 +1205,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 2,
|
index: 2,
|
||||||
@@ -1509,7 +1509,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1557,7 +1557,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1605,7 +1605,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1653,7 +1653,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1701,7 +1701,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1747,7 +1747,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1793,7 +1793,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 2,
|
index: 2,
|
||||||
@@ -1837,7 +1837,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -1884,7 +1884,7 @@ describe("api", () => {
|
|||||||
it
|
it
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: it.artistId,
|
artistId: `artist:${it.artistId}`,
|
||||||
artist: it.artistName,
|
artist: it.artistName,
|
||||||
})),
|
})),
|
||||||
index: 0,
|
index: 0,
|
||||||
@@ -2344,7 +2344,7 @@ describe("api", () => {
|
|||||||
album
|
album
|
||||||
).href(),
|
).href(),
|
||||||
canPlay: true,
|
canPlay: true,
|
||||||
artistId: album.artistId,
|
artistId: `artist:${album.artistId}`,
|
||||||
artist: album.artistName,
|
artist: album.artistName,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user