From f1ed0fa6a0f1c517671249eddefda2a61c12ccf9 Mon Sep 17 00:00:00 2001 From: tea Date: Mon, 27 May 2024 22:05:34 +0200 Subject: [PATCH] tag_audio: skip dirs which are probably not albums --- .config/zsh/functions/tag_audio | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/zsh/functions/tag_audio b/.config/zsh/functions/tag_audio index 3af679f..c71843f 100755 --- a/.config/zsh/functions/tag_audio +++ b/.config/zsh/functions/tag_audio @@ -9,6 +9,12 @@ function _tag_audio_extra_tags() { } for dir in ${@}; do + [[ -d ${dir} ]] || continue + if [[ "${dir}" == "singles" ]] || [[ "${dir}" == "misc" ]]; then + print -Pu2 "%B%F{yellow}skipping ${dir}%f%b" + continue + fi + picard ${dir} mksmol ${dir}