cc-4421: Added special handling for files that mutagen returns None for.

This commit is contained in:
Rudi Grinberg 2012-09-13 14:54:52 -04:00
parent 4137602116
commit 8d08aa888b
2 changed files with 10 additions and 5 deletions

View file

@ -901,7 +901,7 @@ class ApiController extends Zend_Controller_Action
foreach ($data as $pair) {
list($id, $gain) = $pair;
// TODO : move this code into model -- RG
$file = Application_Model_StoredFile::Recall($p_id = $id)->getPropelOrm();
$file->setDbReplayGain($gain);
$file->save();