From 454877c42ab16428da6cddee813077cea4d4c794 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 17 Oct 2010 14:09:12 -0700 Subject: Rename save_fields to write. --- omptagger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'omptagger') 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 -- cgit v1.2.3-70-g09d2