summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2015-09-06 09:21:11 -0400
committerzmike <michael.blumenkrantz@gmail.com>2015-09-06 09:21:11 -0400
commitf1fe7471fd3ff81e03575fe07e14730cc0fb5ec8 (patch)
tree521a3d5078d2c0453a453036c19ad2567b1c1d13 /src
parente893b6cbc1f3a971cee0e08a5be9e24f3ae7b40f (diff)
only allow parent directory searches for filesystem loader if still in album directory
fixes erroneous setting of cover art from other albums
Diffstat (limited to 'src')
-rw-r--r--src/modules/filesystem_loader.c7
1 files 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)
134 if (p) 134 if (p)
135 { 135 {
136 p[0] = 0; 136 p[0] = 0;
137 it = eina_file_stat_ls(buf); 137 if (strstr(buf, fsi->req->album))
138 files = fsscan(it, files, !!fsi->req->album); 138 {
139 it = eina_file_stat_ls(buf);
140 files = fsscan(it, files, !!fsi->req->album);
141 }
139 } 142 }
140 } 143 }
141 ecore_thread_feedback(eth, files); 144 ecore_thread_feedback(eth, files);