fix: excluding ogg files

Archive create an mp3 file for every ogg file uploaded, avoid duplication using only mp3
in the future maybe we can choose if use only mp3 or only ogg with a parameter
This commit is contained in:
danilo silva 2020-05-25 19:43:53 +00:00
parent 1bce4490a0
commit 3aeb1b501e

View file

@ -95,7 +95,7 @@ defmodule PodcastFeed.Provider.Archive.Parser do
end end
defp filter_audio_files(files) do defp filter_audio_files(files) do
files |> Enum.filter(fn f -> Map.get(f, "format") =~ ~r/MP3|OGG/i end) #FIXME:! mp3, ogg, boh files |> Enum.filter(fn f -> Map.get(f, "format") =~ ~r/MP3/i end) #FIXME:! mp3, ogg, boh
end end
defp to_feed_item(file, identifier, files) do defp to_feed_item(file, identifier, files) do