Missing track
Sorry we can't find the post you're after.
}else{//end if($post->properties['id']>0 || ($post->properties['live']==0 AND $post->properties['user']!=$user->properties['id']))
$artist->fetch($post->properties['artist']);
$track->fetch($post->properties['track']);
$pageTitle=$post->properties['artistname']." : ".$post->properties['tracktitle']." - ".$post->properties['heading'];
$pageDesc=$post->properties['artistname']." : ".$post->properties['tracktitle']." - ".$post->properties['heading'];
$keywords=$post->properties['artistname'].", ".$post->properties['tracktitle'].", ".$post->properties['heading'];
include('includes/header.php');
if($track->properties['spotify']!=null){
$spotifyUri=$track->properties['spotify'];
}else{
//get spotify details
$spotifyTrack = Spotify::searchTrack($post->properties['artistname']." - ".$post->properties['tracktitle']);
$spotifyUri = Spotify::getUri($spotifyTrack);
$track->properties['spotify']=$spotifyUri;
$track->save();
}
if($track->properties['amazon']!=null){
$amazonUri=$track->properties['amazon'];
}else{
//get amazon link
$amazon = new AmazonProductAPI();
$amazonRes = $amazon->searchMusic($post->properties['artistname'], $post->properties['tracktitle']);
if($amazonRes->Items->Item->ASIN[0]!=""){
$amazonUri="http://www.amazon.com/exec/obidos/ASIN/".$amazonRes->Items->Item->ASIN[0]."/mumubl0d-21";
$amazonASIN=$amazonRes->Items->Item->ASIN[0];
$track->properties['amazon']=$amazonUri;
$track->save();
}
}
if($track->properties['itunes']!=null){
$itunesUri=$track->properties['itunes'];
}else{
//get itunes link
$itunes = new iTunes();
$itunesResult=$itunes->getTrack($post->properties['artistname'],$post->properties['tracktitle']);
if($itunesResult){
$itunesUri=$itunesResult;
$track->properties['itunes']=$itunesResult;
$track->save();
}
}
?>
$heroimage=0;
if($post->properties['image']!="" && file_exists($_SERVER['DOCUMENT_ROOT']."/img/postimages/".$post->properties['image'])){
$heroimage=1;
$heroURL = "/img/postimages/".$post->properties['image'];
}
?>