ffmpeg : music_meta exit if no targets.
This commit is contained in:
parent
7033aa65a0
commit
cd6d71a444
|
@ -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%%_*}"
|
||||
|
|
Reference in a new issue