summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
Diffstat (limited to 'omptagger')
-rwxr-xr-xomptagger16
1 files changed, 9 insertions, 7 deletions
diff --git a/omptagger b/omptagger
index 68ccb9d..73f26d9 100755
--- a/omptagger
+++ b/omptagger
@@ -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