CC-1799 Put Airtime Storage into a Human Readable File Naming Convention

fixing a couple playlist things to work with the new storedfile class.
This commit is contained in:
Naomi Aro 2011-06-16 12:39:17 +02:00
parent 0d8a340924
commit 35cbeffd4a
2 changed files with 5 additions and 5 deletions

View File

@ -113,8 +113,8 @@ class PlaylistController extends Zend_Controller_Action
$this->changePlaylist($pl_id); $this->changePlaylist($pl_id);
$pl = $this->getPlaylist(); $pl = $this->getPlaylist();
$title = $pl->getPLMetaData(UI_MDATA_KEY_TITLE); $title = $pl->getPLMetaData("dc:title");
$desc = $pl->getPLMetaData(UI_MDATA_KEY_DESCRIPTION); $desc = $pl->getPLMetaData("dc:description");
$data = array( 'title' => $title, 'description' => $desc); $data = array( 'title' => $title, 'description' => $desc);
$form->populate($data); $form->populate($data);
@ -130,7 +130,7 @@ class PlaylistController extends Zend_Controller_Action
$pl->setName($title); $pl->setName($title);
if(isset($description)) { if(isset($description)) {
$pl->setPLMetaData(UI_MDATA_KEY_DESCRIPTION, $description); $pl->setPLMetaData("dc:description", $description);
} }
$this->view->pl = $pl; $this->view->pl = $pl;

View File

@ -496,7 +496,7 @@ class Playlist {
} }
$metadata = $media->getMetadata(); $metadata = $media->getMetadata();
$length = $metadata["dcterms:extent"]; $length = $metadata['MDATA_KEY_DURATION'];
if (!is_null($p_clipLength)) { if (!is_null($p_clipLength)) {
$length = $p_clipLength; $length = $p_clipLength;