Created
October 30, 2012 17:05
-
-
Save jlapier/3981563 to your computer and use it in GitHub Desktop.
using ruby-mp3info to fix artist names in mp3 tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I always manage to end up with different capitalizations on artist names, | |
# which causes some mp3 players to see them as different artists. | |
# So I use ruby-mp3info to rename them | |
# gem install ruby-mp3info | |
require 'rubygems' | |
require 'ruby-mp3info' | |
# in the directory of the artist, with albums as subdirectories (change as needed) | |
files = Dir['*/*.mp3'] | |
files.each do |f| | |
Mp3Info.open(f) do |mi| | |
mi.tag.artist = "Capitalization of the Band" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment