add exception for direct links to pixiv fanbox images

This commit is contained in:
r888888888
2018-10-20 23:58:19 -07:00
parent 77cc4ad625
commit e060236fb7
2 changed files with 9 additions and 2 deletions

View File

@@ -148,7 +148,11 @@ class PixivApiClient
end
def pages
json["body"]["body"]["images"].map {|x| x["originalUrl"]}
if json["body"]["body"]
json["body"]["body"]["images"].map {|x| x["originalUrl"]}
else
[]
end
end
end