From 797c214fa784b1a1ac669ba72b2bd5e7c2953ac0 Mon Sep 17 00:00:00 2001 From: maniacikarus Date: Wed, 3 Oct 2007 08:47:47 +0000 Subject: [PATCH] Anzeige des aktuellen Songs auf 125 Zeichen begrenzt git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@935 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- html/cgi-bin/mpfire.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/html/cgi-bin/mpfire.cgi b/html/cgi-bin/mpfire.cgi index f0a989479..464ee075b 100644 --- a/html/cgi-bin/mpfire.cgi +++ b/html/cgi-bin/mpfire.cgi @@ -236,6 +236,7 @@ END my $song = qx(/usr/local/bin/mpfirectrl song); if ( $song eq "" ){$song = "None";} +if ( length($song) > 125 ) {$song = substr($song,0,125)."...";} my $Volume = `/usr/local/bin/mpfirectrl volume`; $Volume=~s//
/g;