diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-17 01:16:31 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-17 01:16:31 -0700 |
commit | ba931a79b1d7135241cb1fce0996e2a6bad6e32f (patch) | |
tree | 411f6c3d633ad8d232f0c7e99d510bf1e9575f32 /omptagger | |
parent | b9210324dc69b8bba6471bb0fdfc1f6dbb913668 (diff) | |
download | omptagger-ba931a79b1d7135241cb1fce0996e2a6bad6e32f.tar.gz omptagger-ba931a79b1d7135241cb1fce0996e2a6bad6e32f.tar.xz |
Rename track to metadata.
Diffstat (limited to 'omptagger')
-rwxr-xr-x | omptagger | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |