dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6a0a9de8e553e5c42f90c54e318ff013b552799f
parent 7e8d258b05b2096f2f3e7eb2718d330d38ec229d
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 10 Aug 2022 00:07:56 +0200

mlm: delete empty lyrics before embedding

Diffstat:
Mscripts/mlm | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/mlm b/scripts/mlm @@ -95,6 +95,7 @@ verify_recently_added() { embed_lyrics() { LYRICS_DIR="$HOME/.local/share/lyrics" [ -d "$LYRICS_DIR" ] || die "Lyrics dir $LYRICS_DIR not found." + find "$LYRICS_DIR" -type f -size 0 -delete find "$LYRICS_DIR" -type f \ | while read -r lyricsfile; do @@ -129,6 +130,7 @@ organize_files() { printf "%s -> %s\n" "$i" "$artist/$album" mv "$i" "$artist/$album" done + mpc -w update >/dev/null 2>&1 rmdir _failed 1>/dev/null 2>&1 || printf "Some tracks were not organised automatically, they are in ./_failed/" }