For vinyl medias, use "Scrobble side" label

This commit is contained in:
Claudio Ortolina
2025-10-14 08:03:32 +01:00
parent 84eaeec581
commit 69e520bef6
3 changed files with 19 additions and 1 deletions
+9 -1
View File
@@ -117,7 +117,7 @@ defmodule MusicLibraryWeb.Components.Release do
phx-target={@myself}
phx-disable-with={gettext("Scrobbling...")}
>
{gettext("Scrobble disc")}
{medium_scrobble_label(@medium.format)}
</.button>
</div>
<.track_list
@@ -132,6 +132,14 @@ defmodule MusicLibraryWeb.Components.Release do
"""
end
defp medium_scrobble_label(format) do
if format && String.contains?(format, "Vinyl") do
gettext("Scrobble side")
else
gettext("Scrobble disc")
end
end
attr :medium_number, :integer, required: true
attr :tracks, :list, required: true
attr :release_artists, :list, required: true