Browse Source

fix: urldecode the image url

danilo silva 4 years ago
parent
commit
3bea1c2d26
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

@@ -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",
     }