This commit is contained in:
Cody Rogers 2023-03-08 21:10:44 +01:00 committed by GitHub
commit 04cee97d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,8 @@ defmodule LiveBeats.MediaLibrary.Song do
changeset
|> put_duration(stat.duration)
|> Ecto.Changeset.put_change(:mp3_filesize, stat.size)
|> Ecto.Changeset.put_change(:artist, stat.artist)
|> Ecto.Changeset.put_change(:title, stat.title)
end
defp put_duration(%Ecto.Changeset{} = changeset, duration) when is_integer(duration) do