discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=f1fe7471fd3ff81e03575fe07e14730cc0fb5ec8

commit f1fe7471fd3ff81e03575fe07e14730cc0fb5ec8
Author: zmike <michael.blumenkra...@gmail.com>
Date:   Sun Sep 6 09:21:11 2015 -0400

    only allow parent directory searches for filesystem loader if still in 
album directory
    
    fixes erroneous setting of cover art from other albums
---
 src/modules/filesystem_loader.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/filesystem_loader.c b/src/modules/filesystem_loader.c
index 1be6d97..983ba7b 100644
--- a/src/modules/filesystem_loader.c
+++ b/src/modules/filesystem_loader.c
@@ -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);

-- 


Reply via email to