Compare commits

...

2 Commits

Author SHA1 Message Date
52eff86047 m4a: fix mismatching delimiter on track field 2023-05-27 22:25:32 +02:00
444f3ada33 Fix issue with binary interpretation of id3 tag by grep 2023-05-27 22:25:15 +02:00

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
@@ -313,7 +313,7 @@ function tagmove_single {
fi
# Set fixed width for track number
track=$(printf "%02d" $(cut -d'/' -f1 <<<"${track#0}"))
track=$(printf "%02d" $(cut -d'-' -f1 <<<"${track#0}"))
eval "dest_directory=\"$DIRECTORY_FORMAT\""