Skip to content

Instantly share code, notes, and snippets.

@mxwell
Created February 26, 2013 12:13
Show Gist options
  • Save mxwell/5038029 to your computer and use it in GitHub Desktop.
Save mxwell/5038029 to your computer and use it in GitHub Desktop.
Ruby script to convert ID3 tags of *.mp3 files from current directory from Windows-1251 to Unicode. Required: * Ruby * mid3iconv
#! /usr/local/bin/ruby
Dir.foreach("./") do |filename|
if /^[^.]*\.mp3$/i =~ filename
cmd = "mid3iconv -e \"Windows-1251\" \"%s\"" % filename
puts "next cmd: " + cmd
break if not system(cmd)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment