getAlbumArtImage($searchStringArtist, $searchStringAlbum); if (isset($result) && $result['success']) break; } if ($result['success']) { header('Content-Type: ' . $result['mimetype']); echo $result['imagedata']; } else { echo "No album art found."; } break; case "imageurls": header('Content-Type: text/plain'); $results = getCoverArtResults($searchStringArtist, $searchStringAlbum, $limit, $coverArtProviders); foreach ($results as $result) echo $result->imageURL . "\n"; break; case "results": header('Content-Type: text/plain'); $results = getCoverArtResults($searchStringArtist, $searchStringAlbum, $limit, $coverArtProviders); foreach ($results as $result) echo $result->title . ":|:" . $result->detailsURL . ":|:" . $result->thumbnailImageURL . ":|:" . $result->imageURL . "\n"; break; case "debug": header('Content-Type: text/plain'); print_r($_GET); foreach ($coverArtProviders as $provider) { $result = $provider->getCoverArtList($searchStringArtist, $searchStringAlbum); print_r($result); } break; } ?>