This commit is contained in:
byte[] 2022-02-08 19:17:39 -05:00
parent 74f34a1880
commit 577d5e8766

View file

@ -5,6 +5,7 @@ defmodule Philomena.Processors.Webm do
def versions(sizes) do def versions(sizes) do
webm_versions = Enum.map(sizes, fn {name, _} -> "#{name}.webm" end) webm_versions = Enum.map(sizes, fn {name, _} -> "#{name}.webm" end)
mp4_versions = Enum.map(sizes, fn {name, _} -> "#{name}.mp4" end) mp4_versions = Enum.map(sizes, fn {name, _} -> "#{name}.mp4" end)
gif_versions = gif_versions =
sizes sizes
|> Enum.filter(fn {name, _} -> name in [:thumb_tiny, :thumb_small, :thumb] end) |> Enum.filter(fn {name, _} -> name in [:thumb_tiny, :thumb_small, :thumb] end)