fix: urldecode the image url

This commit is contained in:
danilo silva 2020-05-24 21:47:38 +00:00
parent 4cead58a0b
commit 3bea1c2d26

View file

@ -99,7 +99,7 @@ defmodule PodcastFeed.Provider.Archive.Parser do
length: (file |> Map.get("length") |> Float.parse() |> elem(0)) |> trunc(),
size: file |> Map.get("size"),
summary: "",
image: Format.compile(@download_url, identifier: identifier, filename: fetch_image_of_audio(Map.get(file, "name"), files)),
image: Format.compile(@download_url, identifier: identifier, filename: fetch_image_of_audio(Map.get(file, "name"), files)) |> URI.encode(),
keywords: file |> Map.take(["album", "artist", "genre"]) |> Map.values(),
explicit: "no",
}