mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-05-28 22:18:07 +00:00
Merge 8285063823
into 712204ca17
This commit is contained in:
commit
04cee97d73
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue