From 468a789dbc4b1928c035d8590895efc533520a27 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 24 Feb 2021 17:07:33 +0100 Subject: Updated file tree to match XDG base directory specification --- bin/tag-music | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 bin/tag-music (limited to 'bin/tag-music') diff --git a/bin/tag-music b/bin/tag-music deleted file mode 100755 index 826a83a..0000000 --- a/bin/tag-music +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -music_dir="$HOME/Music" - -for artist_dir in "$music_dir"/* -do - [ ! -d "$artist_dir" ] && continue - artist="$(basename "$artist_dir")" - [ "$artist" = backup ] && continue - - for album_dir in "$artist_dir"/* - do - album="$(basename "$album_dir")" - [ ! -d "$album_dir" ] && continue - - for song_file in "$album_dir"/* - do - [ ! -f "$song_file" ] && continue - song="$(basename "$song_file" | rev | cut -d '.' -f 2- | rev)" - # echo $song_file - track=0 - if expr "$song" : "[0-9][0-9]*\-.*" > /dev/null - then - track="$(echo "$song" | cut -d '-' -f 1)" - song="$(echo "$song" | cut -d '-' -f 2-)" - fi - # echo $track $song - # echo $song_file - taffy --artist "$artist" --album "$album" --title "$song" --track "$track" "$song_file" - done - done -done -- cgit