Fix error in rendering an artist with empty bio
Includes a refactor for a helper to test for play count
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule LastFm.Artist do
|
||||
%__MODULE__{
|
||||
musicbrainz_id: api_response["mbid"],
|
||||
name: api_response["name"],
|
||||
bio: api_response["bio"]["content"],
|
||||
bio: api_response["bio"]["content"] || "",
|
||||
image: get_image(api_response),
|
||||
play_count: get_play_count(api_response)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user