Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Stripping Tag Information From MP3 Files [For Win32] - Ruby

DZone's Guide to

Stripping Tag Information From MP3 Files [For Win32] - Ruby

·
Free Resource

require 'rubygems'
require 'id3lib'

fnames = []
record  = `dir /b /S *.mp3`.chomp!
fnames = record.split("\n")

count = 0
num = 0
while (count < fnames.size)
	# Load a tag from a file
	tag = ID3Lib::Tag.new("#{fnames[count]}")

	# Get and set text frames with convenience methods

	#if (tag.album == "The Lion King: 1997 Broadway Cast")
	tag.strip!
	puts "."
	num +=1
	count += 1
end

puts "Modified #{num} Records."
Topics:

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}