From d7687d3d406088dcbfee97ed8c4ee18fc2945f5c Mon Sep 17 00:00:00 2001 From: Alexander Yakushev Date: Sat, 15 Oct 2011 15:40:15 +0300 Subject: 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. --- awesompd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3