summaryrefslogtreecommitdiff
path: root/omptagger
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2007-08-10 03:23:18 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2010-10-05 21:56:09 -0700
commit8b2c1370688bde804c673fd728c5a36b9db2206f (patch)
tree07c6e8854f799fb0c25e609af8d664072b75ed4f /omptagger
parent425d678b0a495d06b7be52d5fd7acba4d716cda2 (diff)
downloadomptagger-8b2c1370688bde804c673fd728c5a36b9db2206f.tar.gz
omptagger-8b2c1370688bde804c673fd728c5a36b9db2206f.tar.xz
Import version 0.2.1 into git history.
Diffstat (limited to 'omptagger')
-rwxr-xr-xomptagger8
1 files 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 <omp@gentoo.org>
@@ -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.