Browse Source

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
danilo silva 4 years ago
parent
commit
3aeb1b501e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/podcast_feed/provider/archive/parser.ex

+ 1 - 1
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