Always render cover hash for top albums if available

This commit is contained in:
Claudio Ortolina
2025-10-23 16:56:15 +01:00
parent a12963cb0a
commit 466d01f826
2 changed files with 1 additions and 15 deletions
@@ -196,14 +196,6 @@ defmodule MusicLibraryWeb.StatsLive.TopAlbums do
end
defp cover_url(album) do
if LastFm.fallback_cover?(album.cover_url) do
payload =
Transform.new(hash: album.cover_hash, width: 96)
|> Transform.encode!()
~p"/assets/#{payload}"
else
album.cover_url
end
~p"/assets/#{Transform.new(hash: album.cover_hash, width: 96)}"
end
end