]> Joshua Wise's Git repositories - patchfork.git/blobdiff - player/metadata_cover.php
Fix UTF-8 support in config (bug reported by Eloi Rivard).
[patchfork.git] / player / metadata_cover.php
index 10e7b20be91a548bb3b04ce0fa22c18b7524805a..50daeb4d4aeed72ce8edd4c446f2b3de6e7358bd 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.024688 seconds and 4 git commands to generate.