mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Format
This commit is contained in:
parent
bf568745dc
commit
45196e2619
1 changed files with 1 additions and 3 deletions
|
@ -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!()
|
||||||
|
|
Loading…
Reference in a new issue