CC-3747: Metadata popup should also show the filepath of the track
-fixed
This commit is contained in:
parent
0d5b9ebada
commit
ff6e2a2e5a
3 changed files with 10 additions and 14 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue