CC-3747: Metadata popup should also show the filepath of the track

-fixed
This commit is contained in:
denise 2012-05-02 16:52:49 -04:00
parent 0d5b9ebada
commit ff6e2a2e5a
3 changed files with 10 additions and 14 deletions

View file

@ -217,7 +217,14 @@ class LibraryController extends Zend_Controller_Action
$file = Application_Model_StoredFile::Recall($id);
$this->view->type = $type;
$md = $file->getMetadata();
foreach ($md as $key => $value) {
if ($key == 'MDATA_KEY_DIRECTORY') {
$musicDir = Application_Model_MusicDir::getDirByPK($value);
$md['MDATA_KEY_FILEPATH'] = $musicDir->getDirectory() . $md['MDATA_KEY_FILEPATH'];
}
}
$formatter = new SamplerateFormatter($md["MDATA_KEY_SAMPLERATE"]);
$md["MDATA_KEY_SAMPLERATE"] = $formatter->format();