From ba931a79b1d7135241cb1fce0996e2a6bad6e32f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 17 Oct 2010 01:16:31 -0700 Subject: Rename track to metadata. --- omptagger | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/omptagger b/omptagger index 89aa3e6..df147fe 100755 --- a/omptagger +++ b/omptagger @@ -449,11 +449,11 @@ ARGV.each do |file| case mime.file(file) when 'audio/x-flac' - track = FLAC.new(file) + metadata = FLAC.new(file) when 'application/ogg' - track = Vorbis.new(file) + metadata = Vorbis.new(file) when 'audio/mpeg' - track = MP3.new(file) + metadata = MP3.new(file) else raise 'File extension not recognised.' end @@ -461,11 +461,11 @@ ARGV.each do |file| actions.each do |action| Output.action(action.to_s) catch :next do - action.execute(track) + action.execute(metadata) end end - track.save unless options.include?(:pretend) + metadata.save unless options.include?(:pretend) rescue RuntimeError => message $stderr.puts $0 + ': ' + file + ': ' + message end -- cgit v1.2.3-70-g09d2