only allow parent directory searches for filesystem loader if still in album directory

fixes erroneous setting of cover art from other albums
This commit is contained in:
zmike 2015-09-06 09:21:11 -04:00
parent e893b6cbc1
commit f1fe7471fd
1 changed files with 5 additions and 2 deletions

View File

@ -134,8 +134,11 @@ fsrun(FSInfo *fsi, Ecore_Thread *eth)
if (p)
{
p[0] = 0;
it = eina_file_stat_ls(buf);
files = fsscan(it, files, !!fsi->req->album);
if (strstr(buf, fsi->req->album))
{
it = eina_file_stat_ls(buf);
files = fsscan(it, files, !!fsi->req->album);
}
}
}
ecore_thread_feedback(eth, files);