CC-2717: Media Monitor forgets about watched directories after being restarted
This commit is contained in:
parent
e5579228bd
commit
d7830785df
2 changed files with 13 additions and 0 deletions
|
@ -426,6 +426,13 @@ class ApiController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
$this->view->stor = MusicDir::getStorDir()->getDirectory();
|
||||
|
||||
$watchedDirs = MusicDir::getWatchedDirs();
|
||||
$watchedDirsPath = array();
|
||||
foreach($watchedDirs as $wd){
|
||||
$watchedDirsPath[] = $wd->getDirectory();
|
||||
}
|
||||
$this->view->watched_dirs = $watchedDirsPath;
|
||||
}
|
||||
|
||||
public function reloadMetadataAction() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue