summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-17 01:16:31 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-17 01:16:31 -0700
commitba931a79b1d7135241cb1fce0996e2a6bad6e32f (patch)
tree411f6c3d633ad8d232f0c7e99d510bf1e9575f32 /omptagger
parentb9210324dc69b8bba6471bb0fdfc1f6dbb913668 (diff)
downloadomptagger-ba931a79b1d7135241cb1fce0996e2a6bad6e32f.tar.gz
omptagger-ba931a79b1d7135241cb1fce0996e2a6bad6e32f.tar.xz
Rename track to metadata.
Diffstat (limited to 'omptagger')
-rwxr-xr-xomptagger10
1 files 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