From 3aeb1b501ee9c3407a759b76dffccdbc7897ee64 Mon Sep 17 00:00:00 2001 From: danilo silva Date: Mon, 25 May 2020 19:43:53 +0000 Subject: [PATCH] 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 --- 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 8b6b0c3..5b0e0aa 100644 --- a/lib/podcast_feed/provider/archive/parser.ex +++ b/lib/podcast_feed/provider/archive/parser.ex @@ -95,7 +95,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|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 defp to_feed_item(file, identifier, files) do