mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-11 05:57:37 +02:00
thanks bear <3
This commit is contained in:
parent
73a83832ea
commit
c913094216
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,12 @@ defmodule Philomena.Scrapers.Inkbunny do
|
|||
|
||||
json = Jason.decode!(body)
|
||||
[submission] = json["submissions"]
|
||||
|
||||
|
||||
images = for x <- submission["files"] do
|
||||
x["file_url_full"]
|
||||
%{
|
||||
url: "#{x["file_url_preview"]}:orig",
|
||||
camo_url: Camo.Image.image_url(x["file_url_preview"])
|
||||
}
|
||||
end
|
||||
|
||||
%{
|
||||
|
@ -28,4 +31,4 @@ defmodule Philomena.Scrapers.Inkbunny do
|
|||
defp inkbunny_sid do
|
||||
Application.get_env(:philomena, :inkbunny_sid)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue