mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2025-04-18 18:44:41 -04:00
Limit result to one line when parsing cover size.
This commit is contained in:
parent
f65fddebc2
commit
1ac6979885
1 changed files with 1 additions and 1 deletions
2
AAXtoMP3
2
AAXtoMP3
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue