aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-10-15 15:40:15 +0300
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-10-15 15:40:15 +0300
commitd7687d3d406088dcbfee97ed8c4ee18fc2945f5c (patch)
treeb5b0048af349c8773d032008aff745ab987f6613
parent28ae823df5140d1577acb84c41b882bc5cd2db59 (diff)
downloadawesompd-d7687d3d406088dcbfee97ed8c4ee18fc2945f5c.tar.gz
awesompd-d7687d3d406088dcbfee97ed8c4ee18fc2945f5c.tar.bz2
Change double quote wrapping of filenames to single quote
This is used in try_get_cover function that searches for album arts for local songs. Double quote wrapping failed on folders with special characters like ! or ? in their names.
-rw-r--r--awesompd.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/awesompd.lua b/awesompd.lua
index 68f04b9..2887bff 100644
--- a/awesompd.lua
+++ b/awesompd.lua
@@ -981,7 +981,7 @@ function awesompd:try_get_local_cover()
local folder = music_folder .. current_file_folder
-- Get all images in the folder
- local covers = self.pread('ls "' .. folder .. '" | grep -P "\.jpg\|\.png\|\.gif|\.jpeg"', "*all")
+ local covers = self.pread("ls '" .. folder .. "' | grep -P '\.jpg\|\.png\|\.gif|\.jpeg'", "*all")
local covers_table = self.split(covers)
if covers_table.n > 0 then