From 692ac29c6893b539963eba4db467fe7da13358e9 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Fri, 19 Jul 2019 21:57:55 -0400 Subject: [PATCH] scripts: add a script to find music with no album artist --- scripts/cmds/find-no-album-artist.fish | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/cmds/find-no-album-artist.fish diff --git a/scripts/cmds/find-no-album-artist.fish b/scripts/cmds/find-no-album-artist.fish new file mode 100755 index 0000000..827ae0c --- /dev/null +++ b/scripts/cmds/find-no-album-artist.fish @@ -0,0 +1,16 @@ +#!/usr/bin/env fish + +set filter 'pan=mono|c0=0.5*FL+-0.5*FR,silenceremove=start_periods=1:detection=peak' + +for f in (find . -type f \( -name "*.ogg" -o \ + -name "*.flac" -o \ + -name "*.mp3" -o \ + -name "*.opus" \)) + set out (ffprobe "$f" 2>/dev/null | rg "album_artist") + + if test ! "$out" + echo "$f has no album artist tag" + end +end + +## EOF