fixes #3033
This commit is contained in:
@@ -96,7 +96,7 @@ class PixivApiClient
|
|||||||
@page_count = json["page_count"].to_i
|
@page_count = json["page_count"].to_i
|
||||||
@artist_commentary_title = json["title"]
|
@artist_commentary_title = json["title"]
|
||||||
@artist_commentary_desc = json["caption"]
|
@artist_commentary_desc = json["caption"]
|
||||||
@tags = json["tags"]
|
@tags = [json["tags"], json["tools"]].flatten.compact
|
||||||
|
|
||||||
if page_count > 1
|
if page_count > 1
|
||||||
@pages = json["metadata"]["pages"].map {|x| x["image_urls"]["large"]}
|
@pages = json["metadata"]["pages"].map {|x| x["image_urls"]["large"]}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class TwitterService
|
|||||||
end
|
end
|
||||||
|
|
||||||
urls.uniq
|
urls.uniq
|
||||||
# rescue => e
|
rescue => e
|
||||||
# []
|
[]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user