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.

19 lines
520B

  1. #!/usr/bin/env fish
  2. function find-no-album-artist -d "Finds files which don't have an album artist"
  3. set filter 'pan=mono|c0=0.5*FL+-0.5*FR,silenceremove=start_periods=1:detection=peak'
  4. for f in (find . -type f \( -name "*.ogg" -o \
  5. -name "*.flac" -o \
  6. -name "*.mp3" -o \
  7. -name "*.opus" \))
  8. set out (ffprobe "$f" 2>/dev/null | rg "album_artist")
  9. if test ! "$out"
  10. echo "$f has no album artist tag"
  11. end
  12. end
  13. end
  14. ## EOF