Skip to content
Snippets Groups Projects

Hotline#14175 lastfm

Merged Laurent requested to merge hotline#14175_lastfm into hotline_6.48
Compare and
+ 465
5
Preferences
Compare changes
Files
@@ -77,6 +77,16 @@ class Class_WebService_Lastfm extends Class_WebService_Abstract {
$album = $artist = '';
}
if (!$album) {
foreach($nodes as $node) {
$album = $this->xml->get_child_value($node, "NAME");
if (strtoupper($titre) == strtoupper($album))
break;
$album = $artist = '';
}
}
if (!$album)
return false;
@@ -145,11 +155,20 @@ class Class_WebService_Lastfm extends Class_WebService_Abstract {
foreach($nodes as $node) {
$artist = $this->xml->get_child_value($node, "NAME");
if ($this->ix->compare_expression($auteur,$artist) == true)
if (strtoupper($artist) == strtoupper($auteur))
break;
$artist = '';
}
if (!$artist) {
foreach($nodes as $node) {
$artist = $this->xml->get_child_value($node, "NAME");
if ($this->ix->compare_expression($auteur,$artist) == true)
break;
$artist = '';
}
}
if(!$artist)
return false;
@@ -261,4 +280,4 @@ class Class_WebService_Lastfm extends Class_WebService_Abstract {
}
}
?>
\ No newline at end of file
?>