pixiv: include stacc url in new artist entries (#4028).

This commit is contained in:
evazion
2018-12-27 15:03:11 -06:00
parent 1f73e60514
commit 2129e60b2b
3 changed files with 29 additions and 3 deletions

View File

@@ -109,12 +109,25 @@ module Sources
nil
end
def stacc_url
return nil if moniker.blank?
"https://www.pixiv.net/stacc/#{moniker}"
end
def profile_urls
[profile_url, stacc_url].compact
end
def artist_name
metadata.name
rescue PixivApiClient::BadIDError
nil
end
def other_names
[artist_name, moniker].compact.uniq
end
def artist_commentary_title
metadata.artist_commentary_title
rescue PixivApiClient::BadIDError