Make config page refuse to allow you to select the mini theme (it should only be...
[patchfork.git] / player / metadata_cover.php
index 10e7b20..50daeb4 100644 (file)
@@ -17,7 +17,6 @@
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-       $amazon_cover_url = $amazon_base_url . "&Operation=ItemSearch&SearchIndex=Music&ResponseGroup=Images";
        $cover_providers = array("directory_cover", "amazon_search_cover");
 
        /* If you want to use this you'll need php-gd as well */
@@ -30,7 +29,7 @@
        function amazon_search_cover($artist, $album) {
                global $amazon_cover_url, $metadata_dir;
 
-               $xml = amazon_album_query($amazon_cover_url, $artist, $album);
+               $xml = amazon_album_query(array("Operation"=>"ItemSearch", "SearchIndex"=>"Music", "ResponseGroup"=>"Images", "Artist"=>"$artist"), $album);
                if($xml) {
                        if(isset($xml->Items[0])&&isset($xml->Items[0]->Item[0])) {
                                $item = $xml->Items[0]->Item[0];
This page took 0.014328 seconds and 4 git commands to generate.