diff options
-rwxr-xr-x | omptagger | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -121,11 +121,11 @@ class FLAC < VorbisComment private def open(file) - return TagLib::FLAC::File.new(file) + TagLib::FLAC::File.new(file) end def read - return @file.xiphComment.fieldListMap.hash + @file.xiphComment.fieldListMap.hash end end @@ -133,11 +133,11 @@ class Vorbis < VorbisComment private def open(file) - return TagLib::Vorbis::File.new(file) + TagLib::Vorbis::File.new(file) end def read - return @file.tag.fieldListMap.hash + @file.tag.fieldListMap.hash end end @@ -145,14 +145,16 @@ class MP3 < Metadata private def open(file) - return TagLib::MPEG::File.new(file) + TagLib::MPEG::File.new(file) end def read metadata = @file.ID3v2Tag.frameListMap.hash - return metadata.each do |field, value| - metadata[field] = value.collect do |x| x.to_s end + metadata.each do |field, value| + metadata[field] = value.collect do |frame| + frame.to_s + end end end end |