parent
776d1b65e8
commit
9e08f857bf
|
@ -245,18 +245,23 @@ class LibraryController extends Zend_Controller_Action
|
||||||
$id = $this->_getParam('id');
|
$id = $this->_getParam('id');
|
||||||
$type = $this->_getParam('type');
|
$type = $this->_getParam('type');
|
||||||
|
|
||||||
if ($type == "audioclip") {
|
try {
|
||||||
$file = Application_Model_StoredFile::Recall($id);
|
if ($type == "audioclip") {
|
||||||
$this->view->type = $type;
|
$file = Application_Model_StoredFile::Recall($id);
|
||||||
$this->view->md = $file->getMetadata();
|
$this->view->type = $type;
|
||||||
}
|
$this->view->md = $file->getMetadata();
|
||||||
else if ($type == "playlist") {
|
}
|
||||||
$file = new Application_Model_Playlist($id);
|
else if ($type == "playlist") {
|
||||||
$this->view->type = $type;
|
|
||||||
$this->view->md = $file->getAllPLMetaData();
|
|
||||||
$this->view->contents = $file->getContents();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
$file = new Application_Model_Playlist($id);
|
||||||
|
$this->view->type = $type;
|
||||||
|
$this->view->md = $file->getAllPLMetaData();
|
||||||
|
$this->view->contents = $file->getContents();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception $e) {
|
||||||
|
Logging::log($e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uploadFileSoundcloudAction(){
|
public function uploadFileSoundcloudAction(){
|
||||||
|
|
|
@ -41,7 +41,7 @@ class Application_Model_Playlist {
|
||||||
"dc:title" => "DbName",
|
"dc:title" => "DbName",
|
||||||
"dc:creator" => "DbCreatorId",
|
"dc:creator" => "DbCreatorId",
|
||||||
"dc:description" => "DbDescription",
|
"dc:description" => "DbDescription",
|
||||||
"dcterms:extent" => "getDbLength"
|
"dcterms:extent" => "DbLength"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue