summaryrefslogtreecommitdiffstats
path: root/lib/class/album.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/album.class.php')
-rw-r--r--lib/class/album.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/class/album.class.php b/lib/class/album.class.php
index ca6f1b10..ea39c9aa 100644
--- a/lib/class/album.class.php
+++ b/lib/class/album.class.php
@@ -351,6 +351,13 @@ class Album {
foreach ($coverart as $key=>$value) {
$i++;
$url = $coverart[$key];
+
+ // We need to check the URL for the /noimage/ stuff
+ if (strstr($url,"/noimage/")) {
+ debug_event('LastFM','Detected as noimage, skipped ' . $url,'3');
+ continue;
+ }
+
$results = pathinfo($url);
$mime = 'image/' . $results['extension'];
$data[] = array('url'=>$url,'mime'=>$mime);
@@ -358,6 +365,7 @@ class Album {
} // end foreach
return $data;
+
} // get_lastfm_art
/*!