diff options
-rwxr-xr-x | tagmp3 | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -36,6 +36,8 @@ ARTISTNAME=`echo $ARTISTNAME | sed 's/^ //'` ALBUMNAME=`echo $ALBUMNAME | sed 's/^ //'` SONGNAME=`echo $SONGNAME | sed 's/^ //'` +echo "\n$FILENAME\n" + # guess artist name from title ARTISTNAME_GUESS=`echo "$FILENAME" | cut -d'-' -f1 | sed 's/_*$//;s/_/ /g'` @@ -46,7 +48,7 @@ ALBUMNAME_GUESS=`echo "$FILENAME" | cut -d'-' -f2 | sed 's/^_*//;s/_*$//;s/_/ /g TRACKNUMBER_GUESS=`echo "$FILENAME" | cut -d'-' -f3 | cut -d'_' -f2` # guess song name from title -SONGNAME_GUESS=`echo "$FILENAME" | cut -d'-' -f3 | sed 's/^_[0-9]*_//;s/_/ /g;s/\.mp3$//'` +SONGNAME_GUESS=`echo "$FILENAME" | cut -d'-' -f3 | sed 's/^_[0-9]*_//;s/_/ /g;s/\.mp3$//;s/\.flac$//'` # get the artist name input [ -z "$ARTISTNAME" ] && echo "Input the Artist name:\nGuessed name is $ARTISTNAME_GUESS" && read ARTISTNAME |