Created
November 17, 2010 04:32
-
-
Save elitecoder/702976 to your computer and use it in GitHub Desktop.
Stripping Tag Information from MP3 Files [For Win32]
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
############################################### | |
# Screenshot.rb # | |
# Author: Mukul Sharma # | |
# Date: 11/09/2009 # | |
############################################### | |
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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment