diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-16 18:50:45 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-16 18:50:45 -0700 |
commit | 56fbaf8931a71ac0bddeeed50d59626989020008 (patch) | |
tree | f43373029360682e79a496fb07625ecb98e0f909 | |
parent | da937363aa86641df8affb839576c41c711b1192 (diff) | |
download | omptagger-56fbaf8931a71ac0bddeeed50d59626989020008.tar.gz omptagger-56fbaf8931a71ac0bddeeed50d59626989020008.tar.xz |
Bugfix.
-rwxr-xr-x | omptagger | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -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 |