feat: filter also ogg files

This commit is contained in:
danilo silva 2020-05-24 21:05:02 +00:00
parent cd2359c634
commit db891109aa

View file

@ -86,7 +86,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/i end) #FIXME:! mp3, ogg, boh files |> Enum.filter(fn f -> Map.get(f, "format") =~ ~r/MP3|OGG/i end) #FIXME:! mp3, ogg, boh
end end
defp to_feed_item(file, identifier) do defp to_feed_item(file, identifier) do