Skip to content

Commit

Permalink
artistinfo plugin: fix artistinfo page not loaded on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
squentin committed Feb 16, 2013
1 parent 4132492 commit 9287bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/artistinfo.pm
Expand Up @@ -459,7 +459,6 @@ sub ArtistChanged
{ my ($self,$aID,$albumID,$force)=@_; { my ($self,$aID,$albumID,$force)=@_;
return unless $self->mapped; return unless $self->mapped;
return unless defined $aID; return unless defined $aID;
$self->cancel;
my $rating = AA::Get("rating:average",'artist',$aID); my $rating = AA::Get("rating:average",'artist',$aID);
$self->{artistratingvalue}= int($rating+0.5); $self->{artistratingvalue}= int($rating+0.5);
$self->{artistratingrange}=AA::Get("rating:range",'artist',$aID); $self->{artistratingrange}=AA::Get("rating:range",'artist',$aID);
Expand All @@ -478,6 +477,7 @@ sub ArtistChanged
my $url = GetUrl($sites{$self->{site}}[SITEURL],$aID); my $url = GetUrl($sites{$self->{site}}[SITEURL],$aID);
return unless $url; return unless $url;
if (!$self->{url} or ($url ne $self->{url}) or $force) { if (!$self->{url} or ($url ne $self->{url}) or $force) {
$self->cancel;
$self->{url} = $url; $self->{url} = $url;
if ($self->{site} eq "biography") { # check for local biography file before loading the page if ($self->{site} eq "biography") { # check for local biography file before loading the page
unless ($force) { unless ($force) {
Expand Down

0 comments on commit 9287bb2

Please sign in to comment.