Account for VHS and Unknown formats

This commit is contained in:
Claudio Ortolina
2025-05-25 10:32:11 +01:00
parent ad29b8f96d
commit 6e19ab410d
4 changed files with 23 additions and 0 deletions
@@ -57,6 +57,7 @@ defmodule MusicBrainz.ReleaseSearchResult do
cond do
String.contains?(format, "Vinyl") -> :vinyl
String.contains?(format, "CD") -> :cd
String.contains?(format, "VHS") -> :vhs
true -> :unknown
end
end
@@ -319,6 +319,8 @@ defmodule MusicLibraryWeb.RecordComponents do
def format_label(:dvd), do: gettext("DVD")
def format_label(:multi), do: gettext("Multi")
def format_label(:digital_download), do: gettext("Digital Download")
def format_label(:vhs), do: gettext("VHS")
def format_label(:unknown), do: gettext("Unknown")
def type_label(:album), do: gettext("Album")
def type_label(:ep), do: gettext("EP")
+10
View File
@@ -866,3 +866,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Digital Download"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Unknown"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "VHS"
msgstr ""
+10
View File
@@ -866,3 +866,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Digital Download"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "Unknown"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "VHS"
msgstr ""