pixiv: include stacc url in new artist entries (#4028).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user