CC-430: Audio normalization (Replaygain Support)
make code simpler (don't download database to file)
This commit is contained in:
parent
0e98bc75c8
commit
b4f1cc13c0
6 changed files with 31 additions and 39 deletions
|
@ -954,7 +954,6 @@ class ApiController extends Zend_Controller_Action
|
|||
$dir_id = $this->_getParam('dir_id');
|
||||
|
||||
//connect to db and get get sql
|
||||
$this->view->rows = Application_Model_StoredFile::listAllFiles2($dir_id, 0);
|
||||
|
||||
$this->view->rows = Application_Model_StoredFile::listAllFiles2($dir_id, 100);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -975,13 +975,11 @@ Logging::log("getting media! - 2");
|
|||
." FROM CC_FILES"
|
||||
." WHERE directory = $dir_id"
|
||||
." AND file_exists = 'TRUE'";
|
||||
|
||||
if (!is_null($limit) && is_int($limit)) {
|
||||
$sql .= " LIMIT $limit";
|
||||
}
|
||||
|
||||
$rows = $con->query($sql, PDO::FETCH_ASSOC);
|
||||
|
||||
|
||||
$rows = $con->query($sql, PDO::FETCH_ASSOC)->fetchAll();
|
||||
return $rows;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
<?php
|
||||
|
||||
//disable buffering so that data is sent as we retrieve it from the database
|
||||
while (@ob_end_flush());
|
||||
|
||||
foreach($this->rows as $row) {
|
||||
echo json_encode($row)."\n";
|
||||
}
|
||||
echo json_encode($this->rows);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue