From efff362ab9ea14cae2bb6c5d246601011e345732 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 31 May 2024 18:57:50 +0100 Subject: [PATCH] Update music directory and album art search pattern - Modified the default music directory path from "$HOME/mus/music/" to "$HOME/mus/music_data/" - Updated the album art search pattern to look for any image files (.png, .jpg) in the directory instead of only "cover" images - Ensured the script exits properly and calls the main function on execution --- kunst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kunst b/kunst index fbb4b1a..e368680 100755 --- a/kunst +++ b/kunst @@ -9,7 +9,7 @@ VERSION=1.3.4 COVER=/tmp/kunst.jpg -MUSIC_DIR="${KUNST_MUSIC_DIR:-"$HOME/mus/music/"}" +MUSIC_DIR="${KUNST_MUSIC_DIR:-"$HOME/mus/music_data/"}" SIZE="${KUNST_SIZE:-250x250}" POSITION="${KUNST_POSITION:-+0+0}" ONLINE_ALBUM_ART="" @@ -112,7 +112,7 @@ find_album_art(){ # Check if there is an album cover/art in the folder. # Look at issue #9 for more details - for CANDIDATE in "$DIR/cover."{png,jpg}; do + for CANDIDATE in "$DIR/*."{png,jpg}; do if [ -f "$CANDIDATE" ]; then STATUS=0 ARTLESS=false @@ -202,4 +202,4 @@ main() { trap "" SIGTSTP trap pre_exit EXIT -main +main \ No newline at end of file