Created
February 26, 2013 12:13
-
-
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
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
#! /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