Skip to content

Commit

Permalink
If not able to fetch the artist info return at least a default artist…
Browse files Browse the repository at this point in the history
… image.
  • Loading branch information
hechtus committed Mar 22, 2014
1 parent c09417b commit 563fdc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions GoogleMusic/AllAccess.pm
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,10 @@ sub get_artist_image {
};
if ($@) {
$log->error("Not able to get the artist image for artist ID $id: $@");
return;
}

my $image = '/html/images/artists.png';
if (exists $googleArtist->{artistArtRef}) {
if ($googleArtist && exists $googleArtist->{artistArtRef}) {
$image = $googleArtist->{artistArtRef};
$image = Plugins::GoogleMusic::Image->uri($image);
}
Expand Down

0 comments on commit 563fdc5

Please sign in to comment.