Commit 505ca7b6 authored by Cédric Marie's avatar Cédric Marie

myaudiotags: Print first track filename

In 'clean' command, the first track information is missing. The value
is printed before being set.

Print the message once it is set.
Signed-off-by: default avatarCédric Marie <cedric@hjuvi.lautre.net>
parent 67de06c2
......@@ -151,8 +151,8 @@ if [ "$command" = "clean" ]; then
if [ "$flac_files" != "" ]; then
# Get album information from the first track
print_header "Get album information from the first track ($file)"
file=`ls -1 *.flac | grep -m 1 flac`
print_header "Get album information from the first track ($file)"
metaflac --export-tags-to=$tags_filename "$file"
tag_artist=`grep "^ARTIST=" $tags_filename | tail -n 1`
tag_artist=${tag_artist#ARTIST=}
......@@ -262,8 +262,8 @@ if [ "$command" = "clean" ]; then
elif [ "$mp3_files" != "" ]; then
# Get album information from the first track
print_header "Get album information from the first track ($file)"
file=`ls -1 *.mp3 | grep -m 1 mp3`
print_header "Get album information from the first track ($file)"
id3v2 --list "$file" > $tags_filename
tag_artist=`grep "^TPE1 " $tags_filename`
tag_artist=${tag_artist#*: }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment