Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Limit result to one line when parsing cover size.
Browse files Browse the repository at this point in the history
  • Loading branch information
utf8please authored Mar 28, 2022
1 parent f65fdde commit 1ac6979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AAXtoMP3
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ do
fi

extra_crop_cover=''
cover_width=$(ffprobe -i "${cover_file}" 2>&1 | $GREP -Po "[0-9]+(?=x[0-9]+)")
cover_width=$(ffprobe -i "${cover_file}" 2>&1 | $GREP -Po "[0-9]+(?=x[0-9]+)" | tail -n 1)
if (( ${cover_width} % 2 == 1 )); then
if [ "$((${loglevel} > 1))" == "1" ]; then
log "Cover ${cover_file} has odd width ${cover_width}, setting extra_crop_cover to make even."
Expand Down

0 comments on commit 1ac6979

Please sign in to comment.