From 8b2c1370688bde804c673fd728c5a36b9db2206f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 10 Aug 2007 03:23:18 -0700 Subject: Import version 0.2.1 into git history. --- omptagger | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/omptagger b/omptagger index af896c0..2d29371 100755 --- a/omptagger +++ b/omptagger @@ -1,6 +1,6 @@ #!/usr/bin/env ruby # -# omptagger [version 0.2] +# omptagger [version 0.2.1] # http://dev.gentoo.org/~omp/omptagger/ # # Copyright 2007 David Shakaryan @@ -355,7 +355,11 @@ class ID3 # Method for writing tags. def hash_write - @tags.update! + if @tags.empty? or (@tags.length == 1 and @tags.frame_text(:TLEN)) + @tags.strip! + else + @tags.update! + end end # Method for displaying all tags. -- cgit v1.2.3-70-g09d2