void

- enter the void 🪐
git clone git://git.acid.vegas/archlinux.git
Log | Files | Refs | Archive

mutag (502B)

      1 #!/bin/sh
      2 # mutag - developed by acidvegas (https://git.acid.vegas/void)
      3 # removes all metadata & album art from mp3 files and sets the artist and title based on the directory and filename
      4 # requires: id3v2 python-eyed3
      5 find $HOME/music -type f | while read SONG; do
      6 	DIR=$(dirname "$SONG")
      7 	ARTIST=$(basename "$DIR")
      8 	TITLE=$(basename "$SONG" .mp3)
      9 	echo "$DIR | $ARTIST | $TITLE"
     10 	eyeD3 --remove-all-images "$SONG"
     11 	id3v2 --delete-all "$SONG"
     12 	id3v2 --artist "$ARTIST" --song "$TITLE" -2 "$SONG"
     13 done