Permalink
Browse files

artistinfo plugin: fix artistinfo page not loaded on startup

  • Loading branch information...
1 parent 4132492 commit 9287bb273a83c1c5739a0e06498dc7dd541548fe @squentin committed Feb 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/artistinfo.pm
@@ -459,7 +459,6 @@ sub ArtistChanged
{ my ($self,$aID,$albumID,$force)=@_;
return unless $self->mapped;
return unless defined $aID;
- $self->cancel;
my $rating = AA::Get("rating:average",'artist',$aID);
$self->{artistratingvalue}= int($rating+0.5);
$self->{artistratingrange}=AA::Get("rating:range",'artist',$aID);
@@ -478,6 +477,7 @@ sub ArtistChanged
my $url = GetUrl($sites{$self->{site}}[SITEURL],$aID);
return unless $url;
if (!$self->{url} or ($url ne $self->{url}) or $force) {
+ $self->cancel;
$self->{url} = $url;
if ($self->{site} eq "biography") { # check for local biography file before loading the page
unless ($force) {

0 comments on commit 9287bb2

Please sign in to comment.