foreach ($retArray as $item) { // Let's strip the full path so we'll have just what we need $data = str_replace($_POST['path'] . "/", "", $item); // Now using our settings let's figure out what we're looking at // First we'll split the directories apart $info = explode("/", $data); $artist = $info[0]; $album = $info[1]; $track = $info[2]; // Have we looked at this artist before? if (!strstr($master, $artist)) { // Now let's create our array to pass to the amazon service $aData['artist'] = $artist; $aData['album'] = $album; // Ok, now that we have the data let's figure out the genres for each artist $genre = $jzSERVICES->getArtistMetadata($aData, "genre"); if ($genre == "") { $genre = "Unknown"; } echo $genre . " - "; echo $artist . "<br>"; } flushdisplay(); // Now let's add this artist to the master list so we don't do them twice $master .= $artist . "|||"; } exit; } ?> <br> <strong>Jinzora Migration Tools</strong><br>