summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-17 14:09:12 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-17 14:09:12 -0700
commit454877c42ab16428da6cddee813077cea4d4c794 (patch)
tree7a8a4d6539fdc8c1bb13873ef392bc8b6e5d2f86 /omptagger
parent0f708ecde00919a9bdf693443aa929cdeaceebea (diff)
downloadomptagger-454877c42ab16428da6cddee813077cea4d4c794.tar.gz
omptagger-454877c42ab16428da6cddee813077cea4d4c794.tar.xz
Rename save_fields to write.
Diffstat (limited to 'omptagger')
-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