Skip to content

Commit

Permalink
Artist radio: apply ::nosim to all artists
Browse files Browse the repository at this point in the history
Previously only applied to the last entry only (by mistake)
  • Loading branch information
MonkeyDo committed Nov 29, 2024
1 parent c43f549 commit 80e22ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/js/src/album/AlbumPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ export default function AlbumPage(): JSX.Element {
artist.artists
?.map((a) => `artist:(${a.artist_mbid ?? a.name})`)
.join(" ") ?? `artist:(${encodeURIComponent(artist.name)})`;
const artistsRadioPromptNoSim: string =
artist.artists
?.map((a) => `artist:(${a.artist_mbid ?? a.name})::nosim`)
.join(" ") ?? `artist:(${encodeURIComponent(artist.name)})::nosim`;

return (
<div
Expand Down Expand Up @@ -344,7 +348,7 @@ export default function AlbumPage(): JSX.Element {
</li>
<li>
<Link
to={`/explore/lb-radio/?prompt=${artistsRadioPrompt}::nosim&mode=easy`}
to={`/explore/lb-radio/?prompt=${artistsRadioPromptNoSim}&mode=easy`}
>
{artist.artists?.length > 1 ? "These artists" : "This artist"}{" "}
only
Expand Down

0 comments on commit 80e22ab

Please sign in to comment.