Skip to content

Instantly share code, notes, and snippets.

@djeikyb
Created January 28, 2012 08:13
Show Gist options
  • Select an option

  • Save djeikyb/1693429 to your computer and use it in GitHub Desktop.

Select an option

Save djeikyb/1693429 to your computer and use it in GitHub Desktop.
Copy TPE1 to TSOP to prevent ipod displaying first last but sorting last first
#!/bin/bash
# Requires mutagen. I used 1.20
# http://code.google.com/p/mutagen/
#
# Changes artist sort tag from Last, First to just
# be whatever the artist name is.
"ls" *mp3 | while read FILE
do
TPE1=$(mid3v2 -l "$FILE" | "grep" TPE1 | cut -d= -f2)
mid3v2 --TSOP "$TPE1" "$FILE"
echo "$FILE: $(mid3v2 -l "$FILE" | "grep" TSOP)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment