commit e58e9d3b42a798dda6bed8af532a01a443a66a66
parent a303421a9e22ae90170c90231904aa0a9c5828e5
Author: lostd <lostd@2f30.org>
Date: Sun, 12 Jan 2014 17:12:38 +0000
At least get fewer items on albums with inconsistent tags
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/musicfix b/bin/musicfix
@@ -148,7 +148,9 @@ end
# Return single item if array is full of duplicates
def flatten_if_one ary
if ary.uniq.length == 1 then
- return ary.first
+ ary.first
+ else
+ ary.uniq
end
end