Sources: fix artist_name not being caught in skeb and weibo

This commit is contained in:
nonamethanks
2021-09-14 11:32:24 +02:00
parent 38e814ddff
commit a845477cba
2 changed files with 5 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ module Sources
end
def artist_name
url[PROFILE_URL, :artist_name]
urls.map { |u| u[PROFILE_URL, :artist_name] }.compact.first
end
def display_name

View File

@@ -137,6 +137,10 @@ module Sources
"https://www.weibo.com/p/#{artist_long_id}"
end
def artist_name
api_response&.dig("user", "screen_name")
end
def artist_commentary_desc
return if api_response.blank?