Ignore all but first tag match from metaflac

This commit is contained in:
2021-06-11 20:17:53 +02:00
parent e608aebe12
commit 2f838a67c9

View File

@@ -61,7 +61,7 @@ function read_tag_flac {
fi
local comment_line
comment_line=$(metaflac --list "$file" --block-type=VORBIS_COMMENT | grep -iE ":\s$tag=")
comment_line=$(metaflac --list "$file" --block-type=VORBIS_COMMENT | grep -iE ":\s$tag=" | head)
if [[ $? -ne 0 ]]; then
error "Reading tag \"$1\" from \"$file\" failed: metaflac error"
return