fix read_tag_flac

This commit is contained in:
2020-12-12 22:58:46 +01:00
parent 8875ddfa9d
commit 3b88131bfa

View File

@@ -56,7 +56,7 @@ function read_tag_flac {
fi
local comment_line
comment_line=$(metaflac --list "$file" --block-type=VORBIS_COMMENT | grep -F "$tag=")
comment_line=$(metaflac --list "$file" --block-type=VORBIS_COMMENT | grep -E ":\s$tag=")
if [[ $? -ne 0 ]]; then
error "Reading tag \"$1\" from \"$file\" failed: metaflac error"
return
@@ -227,7 +227,9 @@ function cuesplit_all {
}
function mv_wrap {
echo "mv" "$@"
printf "mv"
printf " \"%s\"" "$@"
echo
}
function tagmove_single {
@@ -285,7 +287,6 @@ function tagmove_get_media_type {
file -b --mime-type "$file" | cut -d'/' -f1
;;
esac
}