CC-4984: Exception for replaygain

-fixed
This commit is contained in:
Martin Konecny 2013-02-28 18:26:15 -05:00
parent 5ae4ed67a5
commit ae503121d8
2 changed files with 5 additions and 0 deletions

View File

@ -947,6 +947,10 @@ class ApiController extends Zend_Controller_Action
public function updateReplayGainValueAction()
{
// disable the view and the layout
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$data = json_decode($request->getParam('data'));

View File

@ -55,6 +55,7 @@ class ReplayGainUpdater(Thread):
for f in files:
full_path = os.path.join(dir_path, f['fp'])
processed_data.append((f['id'], replaygain.calculate_replay_gain(full_path)))
total += 1
try:
self.api_client.update_replay_gain_values(processed_data)