random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
520 B

#!/usr/bin/env fish
function find-no-album-artist -d "Finds files which don't have an album artist"
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"
## EOF