From 3bea1c2d268bb3133cd1efdc54d725482cf49e84 Mon Sep 17 00:00:00 2001 From: danilo silva Date: Sun, 24 May 2020 21:47:38 +0000 Subject: [PATCH] fix: urldecode the image url --- 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 67e2fe5..86978d2 100644 --- a/lib/podcast_feed/provider/archive/parser.ex +++ b/lib/podcast_feed/provider/archive/parser.ex @@ -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", }