Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active December 26, 2021 02:42
Show Gist options
  • Save icaoberg/76421b9b4811b1b982c014cddfeb0be5 to your computer and use it in GitHub Desktop.
Save icaoberg/76421b9b4811b1b982c014cddfeb0be5 to your computer and use it in GitHub Desktop.
Fill metadata on mp3 files
for F in *.mp3
do
ALBUM='Room Service (Extended Version)'
ARTIST='Roxette'
SONG=$(basename $F .mp3 | cut -d'-' -f2-25 | xargs -0)
GENRE='Pop'
YEAR=2020
mid3v2 -a "$ARTIST" -A "$ALBUM" -t "$SONG" -g $GENRE -y $YEAR $F
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment