commit 9e7e6f11248778542894700aa4911982fdcfc8c8
parent 7cad5a6237030620c357ebb6a94108f850eff362
Author: Ashymad <czilukim@o2.pl>
Date: Sun, 4 Feb 2018 00:56:30 +0100
Add handling for cue files
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.cmus/cmus-geeqie.sh b/.cmus/cmus-geeqie.sh
@@ -8,7 +8,9 @@
FOLDER=$( cmus-remote -Q | grep "file" | sed "s/file //" | rev | \
cut -d"/" -f2- | rev )
-
+if [[ ${FOLDER:0:3} == "cue" ]]; then
+ FOLDER=$(echo "$FOLDER" | sed 's/cue:\/\///g' | rev | cut -d"/" -f2- | rev)
+fi
FLIST=$( find "$FOLDER" -type f )
if echo "$FLIST" | grep -i ".jpeg\|.png\|.jpg" &>/dev/null; then