From 1d1c9dd1a8877ecb424f3a3c19b9024f7e66fb1b Mon Sep 17 00:00:00 2001 From: The Yellow Architect Date: Sun, 19 Nov 2023 09:45:30 +0200 Subject: [PATCH] Reverted the change to Music variable so its like the original, and also reverted 1 comment --- .config/lf/lfrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index b43c5771..a2ab486f 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -134,8 +134,6 @@ cmd encodetomp3 ${{ clear; set -f; - music_folder="${MUSIC}"; - #Variables for notify-send converted_filenames=""; converted_files_count=0; @@ -151,7 +149,7 @@ cmd encodetomp3 ${{ esac parsed_MP3=$(echo "$pickedFilepath" | sed 's/\(.mp4\|.webm\|.mkv\)/.mp3/' | sed 's|.*\/||'); - parsed_MP3="${music_folder}/${parsed_MP3}"; + parsed_MP3="~/Music/${parsed_MP3}"; #Using ffprobe because videos without audiostream result in exit code 1 which stops this entire loop of many files #Remove (alongside its 2 variables) if you don't record videos without audio (which are admittedly rare) @@ -171,7 +169,7 @@ cmd encodetomp3 ${{ fi done - #Notify the user of the results + #Notify the results to the user if [[ $converted_files_count -gt 0 ]]; then converted_filenames=$(echo "$converted_filenames" | sed 's|.*\/||'); notify-send "Converted MP3 Files($converted_files_count):" "$converted_filenames";