cc-4421: Added special handling for files that mutagen returns None for.
This commit is contained in:
parent
4137602116
commit
8d08aa888b
2 changed files with 10 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue