fixes #2324
This commit is contained in:
@@ -36,7 +36,7 @@ module Sources
|
|||||||
links = page.search("a.name")
|
links = page.search("a.name")
|
||||||
|
|
||||||
if links.any?
|
if links.any?
|
||||||
profile_url = "http://nijie.info" + links[0]["href"]
|
profile_url = "http://nijie.info/" + links[0]["href"]
|
||||||
artist_name = links[0].text
|
artist_name = links[0].text
|
||||||
else
|
else
|
||||||
profile_url = nil
|
profile_url = nil
|
||||||
@@ -50,7 +50,7 @@ module Sources
|
|||||||
image = page.search("div#gallery a img")
|
image = page.search("div#gallery a img")
|
||||||
|
|
||||||
if image.any?
|
if image.any?
|
||||||
image[0]["src"]
|
image[0]["src"].try(:sub, %r!^//!, "http://")
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user