diff options
author | zachir <zachir@librem.one> | 2022-10-01 22:21:29 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-10-01 22:21:29 -0500 |
commit | fc1e2879ac9facd177fcbe714d78f9eacbfd75c6 (patch) | |
tree | 1c8cd717ac479e80cfa6b317fa273e285c05f3b8 /tagmp3 | |
parent | c79e77a2d147edb2affcd7358c7d8e4c8ffe3ca8 (diff) |
tagmp3 also tag flac files
Diffstat (limited to 'tagmp3')
-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 |