Store artists when importing a record

This commit is contained in:
Claudio Ortolina
2024-09-24 09:40:52 +01:00
parent 089e61a574
commit bcb70c9e1b
3 changed files with 28 additions and 1 deletions
@@ -106,6 +106,8 @@ defmodule MusicLibraryWeb.RecordLive.SearchComponent do
end
end
defp parse_year(nil), do: ""
defp parse_year(iso_date) do
case Date.from_iso8601(iso_date) do
{:ok, date} -> date.year