Example #1
0
    $meta = $track->getMeta();
    // Now we need to set the meta we want to rewrite
    $meta['title'] = $_POST['edit_title'];
    $meta['artist'] = $_POST['edit_artist'];
    $meta['album'] = $_POST['edit_album'];
    $meta['number'] = $_POST['edit_number'];
    $meta['genre'] = $_POST['edit_genre'];
    $meta['comment'] = $_POST['edit_comment'];
    $meta['lyrics'] = $_POST['edit_lyrics'];
    // Now let's write this
    $track->setMeta($meta);
    // Now let's write the long description if they had one
    $track->addDescription($_POST['edit_long_desc']);
    $track->addShortDescription($_POST['edit_comment']);
    // Now let's update the play count
    $track->setPlayCount($_POST['edit_plays']);
    // Now let's update the cache
    //$path = $track->getPath();
    //unset($path[count($path)-1]);
    //$path = implode("/",$path);
    //$node = new jzMediaNode($path);
    //$node->updateCache(true, false, false, true);
    // Now do we need to close out?
    if (isset($_POST['closeupdate'])) {
        $this->closeWindow(true);
    }
}
if (isset($_POST['createlowfi'])) {
    // First let's display the top of the page and open the main block
    $this->displayPageTop("", "Resampling Track");
    $this->openBlock();