Fix issue with binary interpretation of id3 tag by grep

This commit is contained in:
2023-05-27 22:25:15 +02:00
parent c2644c93ee
commit 444f3ada33

View File

@@ -108,10 +108,10 @@ function read_tag_id3 {
fi
local substr_idx=6
local line=$(grep -E "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1)
local line=$(grep -aE "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1)
if [[ -z $line ]]; then
rfc822tag=${id3v2_map_alt[$tag]}
line=$(grep -E "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1)
line=$(grep -aE "^$rfc822tag:\s" <<<"$id3v2_content_rfc822" | head -1)
substr_idx=5
fi