From db891109aa6638d1167e8c76b276cf5cf11fe83f Mon Sep 17 00:00:00 2001 From: danilo silva Date: Sun, 24 May 2020 21:05:02 +0000 Subject: [PATCH] feat: filter also ogg files --- lib/podcast_feed/provider/archive/parser.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/podcast_feed/provider/archive/parser.ex b/lib/podcast_feed/provider/archive/parser.ex index 927c34d..8f704b7 100644 --- a/lib/podcast_feed/provider/archive/parser.ex +++ b/lib/podcast_feed/provider/archive/parser.ex @@ -86,7 +86,7 @@ defmodule PodcastFeed.Provider.Archive.Parser do end 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 defp to_feed_item(file, identifier) do