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

Commit

Permalink
Merge pull request #211 from utf8please/patch-1
Browse files Browse the repository at this point in the history
Limit result to one line when parsing cover size.
  • Loading branch information
KrumpetPirate authored Jan 29, 2023
2 parents f6ec8aa + 1ac6979 commit e66c51d
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 e66c51d

Please sign in to comment.