summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xomptagger4
1 files changed, 2 insertions, 2 deletions
diff --git a/omptagger b/omptagger
index 472562e..fb4fc96 100755
--- a/omptagger
+++ b/omptagger
@@ -303,7 +303,7 @@ class Metadata
end
def save
- save_fields if @write
+ write if @write
File.rename(@origname, @filename) unless @filename == @origname
end
@@ -324,7 +324,7 @@ class VorbisComment < Metadata
metadata.fieldListMap.hash
end
- def save_fields
+ def write
read.each_key do |field|
metadata.removeField(TagLib::String.new(field))
end