function setLyrics($lyrics, $path) { global $jzUSER; if (!checkPermission($jzUSER, 'admin', $path)) { echo word('Insufficient permissions.'); } else { $track = new jzMediaTrack($path); $meta = array(); $meta['lyrics'] = $lyrics; $track->setMeta($meta); echo word('Lyrics updated.'); } }
$writeback_message = word("Metadata for %s has been stored in Jinzora and this file's ID3 tag.'", $track->getName()); } } else { $writeback_message = word("Metadata for %s has been updated in Jinzora. To update ID3 tags, please enable \$allow_id3_modify.", $track->getName()); } $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); }