metadata scripts

album from folder: create album from foldername
read: read and display author, album, grouping of every folder
remove author before title: remove "name - " when matching author
This commit is contained in:
Lucas Vivohost committed 2026-09-14 12:43:38 +02:00
1 parent 408566b6ea
commit 7c2e0db615
11 files changed
+114 -18

No files matched your search

@@ -15,13 +15,12 @@ while IFS= read -r -d '' f; do
-show_entries format_tags=description \
-of default=nw=1:nk=1 \
-- "$f")
# trim comment
comment="${comment#"${comment%%[![:space:]]*}"}"
comment="${comment%"${comment##*[![:space:]]}"}"
# ---- DELETE MODE ----
if [[ "$mode" == "del" && -n "$comment" && ${#comment} -lt $THRESHOLD ]]; then
if [[ "$mode" == "--delete" && -n "$comment" && ${#comment} -lt $THRESHOLD ]]; then
tmp=$(mktemp -p "$(dirname -- "$f")" ".fftmp.XXXXXX.${f##*.}") || continue
echo "Removing short comment: $f"