From 86493da2e6fd3199ad6ffbabd83ae7b1e00da5c1 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 7 Oct 2013 02:09:02 +0200 Subject: [PATCH] Soxi: remove garbage from bitrate & bitdepth --- lib/tags/soxi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tags/soxi b/lib/tags/soxi index 606bfc0..ccd60fd 100644 --- a/lib/tags/soxi +++ b/lib/tags/soxi @@ -25,6 +25,8 @@ getInfos::soxi() { rate=$(gettag 'sample rate') channels=$(gettag channels) bitrate=$(gettag 'bit rate') - bitrate=${bitrate%%k} + bitrate=${bitrate%k} + bitrate=${bitrate%%.*} bitdepth=$(gettag precision) + bitdepth=${bitdepth%-bit} }