summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
Diffstat (limited to 'omptagger')
-rwxr-xr-xomptagger15
1 files changed, 14 insertions, 1 deletions
diff --git a/omptagger b/omptagger
index 2dcaef9..4397591 100755
--- a/omptagger
+++ b/omptagger
@@ -27,7 +27,7 @@ class VorbisComment < Metadata
puts ' Viewing tags:'
if @tags.empty?
- puts ' No tags are set.'
+ puts ' No tags set.'
return
end
@@ -37,6 +37,19 @@ class VorbisComment < Metadata
end
end
end
+
+ def viewtag(tag)
+ puts ' Viewing ' + tag + ' tag:'
+
+ unless @tags.has_key? tag
+ puts ' Tag not set.'
+ return
+ end
+
+ @tags[tag].each do |val|
+ output(tag, val)
+ end
+ end
end
class FLAC < VorbisComment