Skip to content
Permalink
Browse files

artistinfo plugin: update parsing of artist biography

  • Loading branch information...
Markus Schmidt authored and squentin committed Oct 11, 2015
1 parent 616fa3a commit 457196b02107e2d2e55e39dde2b79b247ace2d1e
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/artistinfo.pm
@@ -542,7 +542,7 @@ sub loaded
if ($self->{site} eq "biography") {
$infoheader = _"Artist Biography";
(my($lfm_artist,$url,$listeners,$playcount),$data)=
$data =~ m|^.*?<name>([^<]*)</name>.*?<url>([^<]*)</url>.*?<listeners>([^<]*)</listeners>.*?<playcount>([^<]*)</playcount>.*?<content>\W*<\!\[CDATA\[(.*?)\n.*\]\]>\W*</content>|s; # last part of the regexp removes the license-notice (=last line)
$data =~ m|^.*?<name>([^<]*)</name>.*?<url>([^<]*)</url>.*?<listeners>([^<]*)</listeners>.*?<playcount>([^<]*)</playcount>.*?<content>(.*?)\n[^\n]*</content>|s; # last part of the regexp removes the license-notice (=last line)

if (!defined $data) {
$infoheader = "\n". _"No results found";

0 comments on commit 457196b

Please sign in to comment.
You can’t perform that action at this time.