From 56fbaf8931a71ac0bddeeed50d59626989020008 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 16 Oct 2010 18:50:45 -0700 Subject: Bugfix. --- omptagger | 16 ++++++++++------ 1 file 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 -- cgit v1.2.3-70-g09d2