summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-16 18:50:45 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-16 18:50:45 -0700
commit56fbaf8931a71ac0bddeeed50d59626989020008 (patch)
treef43373029360682e79a496fb07625ecb98e0f909
parentda937363aa86641df8affb839576c41c711b1192 (diff)
downloadomptagger-56fbaf8931a71ac0bddeeed50d59626989020008.tar.gz
omptagger-56fbaf8931a71ac0bddeeed50d59626989020008.tar.xz
Bugfix.
-rwxr-xr-xomptagger16
1 files changed, 10 insertions, 6 deletions
diff --git a/omptagger b/omptagger
index 8f11650..739072e 100755
--- a/omptagger
+++ b/omptagger
@@ -259,6 +259,8 @@ class VorbisComment < Metadata
character.chr
end
+ valid.delete('=')
+
field.scan(/./).each do |character|
return false unless valid.include?(character)
end
@@ -306,14 +308,16 @@ class MP3 < Metadata
TagLib::MPEG::File.new(file)
end
- def read
- metadata = @file.ID3v2Tag.frameListMap.hash
+ def metadata
+ @file.ID3v2Tag
+ end
- metadata.each do |field, value|
- metadata[field] = value.collect do |frame|
+ def read
+ Hash[metadata.frameListMap.hash.collect do |field, value|
+ [field, value.collect do |frame|
frame.to_s
- end
- end
+ end]
+ end]
end
end