This commit is contained in:
byte[] 2021-11-07 09:33:41 -05:00
parent bf568745dc
commit 45196e2619

View file

@ -22,9 +22,7 @@ defmodule Philomena.Scrapers.Tumblr do
[post_id] = Regex.run(@url_regex, url, capture: :all_but_first) [post_id] = Regex.run(@url_regex, url, capture: :all_but_first)
api_url = api_url =
"https://api.tumblr.com/v2/blog/#{uri.host}/posts/photo?id=#{post_id}&api_key=#{ "https://api.tumblr.com/v2/blog/#{uri.host}/posts/photo?id=#{post_id}&api_key=#{tumblr_api_key()}"
tumblr_api_key()
}"
Philomena.Http.get(api_url) Philomena.Http.get(api_url)
|> json!() |> json!()