Browse code

Add files via upload

Überflüssiges Zeug entfernt.

Stefan Höhn authored on11/02/2018 12:40:42 • GitHub committed on11/02/2018 12:40:42
Showing1 changed files

... ...
@@ -13,7 +13,7 @@ touch fifo.txt
13 13
 rm mpg123.fifo
14 14
 mkfifo mpg123.fifo
15 15
 
16
-radiostation()          {
16
+radiostation()        {
17 17
                       mpg123 --control --utf8 --title --preload 1 --buffer 768 --smooth $1 > mpg123.fifo 2>&1> /dev/null &
18 18
                       cat mpg123.fifo >>fifo.txt &
19 19
                       result=$(tail -n 30 fifo.txt|grep -a --line-buffered "StreamTitle"| sed -e 's/;.*//' -e 's/.*=//' -e "s/'//g")
... ...
@@ -21,15 +21,13 @@ radiostation()          {
21 21
                       
22 22
                       }
23 23
 
24
-title=$( tail -n 1 fifo.txt|grep -a --line-buffered "StreamTitle"| sed -e 's/;.*//' -e 's/.*=//' -e "s/'//g")
25 24
 
26 25
 display_result() {
27
-  gdialog --title "$1" \
28
-    --no-collapse \
29
-    --stdout \
30
-    --infobox "$result" 0 0 \
31
- 
32
-}
26
+                  gdialog --title "$1" \
27
+                  --no-collapse \
28
+                  --stdout \
29
+                  --infobox "$result" 0 0 \
30
+                 }
33 31
 
34 32
 while true; do
35 33
   exec 3>&1