ffmpeg : music_meta exit if no targets.

This commit is contained in:
Dmitry Voronin 2023-11-30 05:23:07 +03:00
parent 7033aa65a0
commit cd6d71a444

View file

@ -43,6 +43,8 @@ ffmpeg_music_meta()
local format="${1}"
ls *.${format} &> /dev/null || return 1
local artist="${PWD%/*}"; artist="${artist##*/}"; artist="${artist//_/ }"
local album="${PWD##*/}"; album="${album#*_}"; album="${album//_/ }"
local year="${PWD##*/}"; year="${year%%_*}"