Merge pull request #4879 from nonamethanks/fix-artist-name

Sources: fix artist_name not being caught in skeb and weibo
This commit is contained in:
evazion
2021-09-14 05:39:06 -05:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

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

View File

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