scripts

Scripts
git clone git://git.wimdupont.com/scripts.git
Log | Files | Refs | LICENSE

commit 69b4b9677029e1e2dd09d14a2860c87bf221c94e
parent 8c3beab203b83087917b8cbfb1d33435718b9e44
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri, 21 Jul 2023 13:55:39 +0200

ytd-album added year tag

Diffstat:
Mbin/ytd-album | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/ytd-album b/bin/ytd-album @@ -31,6 +31,10 @@ echo "What's the album name?" read ALBUM +echo "What's the year of release?" + +read YEAR + echo "What's the genre?" read GENRE @@ -85,8 +89,8 @@ for f in "$DIR"/*; do mv "$DIR/$OLDNAME.mp3" "$DIR/$TRACK - $SONGNAME.mp3" - id3 -t "$SONGNAME" -a "$BAND" -l "$ALBUM" -n $TRACK -g "$GENRE" "$DIR/$TRACK - $SONGNAME.mp3" + id3 -t "$SONGNAME" -a "$BAND" -l "$ALBUM" -y "$YEAR" -n $TRACK -g "$GENRE" "$DIR/$TRACK - $SONGNAME.mp3" else - id3 -t "$TITLE" -a "$BAND" -l "$ALBUM" -n "$TRACK" -g "$GENRE" "$DIR/$SONGNAME.mp3" + id3 -t "$TITLE" -a "$BAND" -l "$ALBUM" -y "$YEAR" -n "$TRACK" -g "$GENRE" "$DIR/$SONGNAME.mp3" fi done