ga-rdiff: create_rdiff(): Quote variable definitions for `src` and `dest`
[sunny256-utils.git] / nettradio
blob7c68cea3b954fc5d78b80368417f2b1161925bfb
1 #!/bin/sh
3 # nettradio
4 # File ID: 9488c962-5d41-11df-a2be-90e6ba3022ac
5 # Spiller av nettradioer — eller rettere sagt sender en
6 # .ogg-strøm som kan lagres og tailes eller trøkkes inn i ogg123.
8 case "$1" in
9 p1|p1hi)
10 radio=http://radio.hiof.no/nrk-p1-172.ogg
12 p2)
13 radio=http://radio.hiof.no:8000/nrk-p2-128
14 mpg321 -q $radio --wav - - | oggenc -Q -q-1 -
16 p3|petre)
17 # radio=http://radio.hiof.no:8000/nrk-petre-128
18 radio=http://radio.hiof.no:8000/nrk-petre-128
19 sget http://radio.hiof.no:8000/nrk-petre-128 | buffer -p 10 | mpg321 -v -
20 # tee $HOME/dl/nettradio/nrk_p3.`u`.mp3 | buffer -p 5 | mpg321 -v -
21 # mpg321 -q --wav - - | oggenc -Q -q1 -
22 # mpg321 -q $radio --wav - | oggenc -Q -q-1 -
24 bbc1q0)
25 radio=http://ogg.bbc.co.uk:8001/radio1_low.ogg
27 bbc1|bbc1-q3)
28 radio=http://ogg.bbc.co.uk:8001/radio1_high.ogg
30 bbc6-q0)
31 radio=http://ogg.bbc.co.uk:8001/6music_low.ogg
33 bbc6|bbc6-q3)
34 radio=http://ogg.bbc.co.uk:8001/6music_high.ogg
37 echo "$0: Mangler radionavn" >&2
39 esac
41 wget -O - -o /dev/null $radio