mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-20 10:13:59 +02:00
Update inkbunny.ex
This commit is contained in:
parent
dc818b0f93
commit
73a83832ea
1 changed files with 5 additions and 3 deletions
|
@ -12,9 +12,11 @@ defmodule Philomena.Scrapers.Inkbunny do
|
|||
{:ok, %Tesla.Env{status: 200, body: body}} = Philomena.Http.get(api_url)
|
||||
|
||||
json = Jason.decode!(body)
|
||||
submission = json["submissions"]
|
||||
|
||||
images = submission["files"]["file_url_full"]
|
||||
[submission] = json["submissions"]
|
||||
|
||||
images = for x <- submission["files"] do
|
||||
x["file_url_full"]
|
||||
end
|
||||
|
||||
%{
|
||||
source_url: submission["url"],
|
||||
|
|
Loading…
Add table
Reference in a new issue