Submitted scripts and programs
Forum rules
Your own work only.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Sat May 02, 2015 3:56 pm
It's only interesting for the Germans here, sorry. On a match day, you pick the region of your favorite football team or one of the Sport1 streams.
Nur fuer die Fans der Bundesliga interessant. Man waehlt einfach die Region seines Lieblingsvereins und bekommt am Spieltag einen Livestream gespielt. Ha-ho-he!
Code: Select all
#!/bin/bash
array=( "Baden-Wuerttemberg" "Bayern" "Bremen" "Berlin/Brandenburg" "Hamburg/Niedersachsen/Mecklenburg-Vorpommern/Schleswig-Holstein" "Hessen" \
"Nordrhein-Westfalen" "Rheinland-Pfalz" "Saarland" "Sachsen/Sachsen-Anhalt/Thueringen" "Sport1.fm" )
select opt in "${array[@]}"; do
echo "$opt"
break
done
if [ "$opt" == "Baden-Wuerttemberg" ]; then
S="http://mp3-live.swr.de/swr1bw_m.m3u"
elif [ "$opt" == "Bayern" ]; then
S="http://streams.br-online.de/bayern1_2.m3u"
elif [ "$opt" == "Bremen" ]; then
S="http://httpmedia.radiobremen.de/bremeneins.m3u"
elif [ "$opt" == "Berlin/Brandenburg" ]; then
S="http://www.radioeins.de/live.m3u"
elif [ "$opt" == "Hessen" ]; then
S="http://metafiles.gl-systemhaus.de/hr/hrinfo_2.m3u"
elif [ "$opt" == "Hamburg/Niedersachsen/Mecklenburg-Vorpommern/Schleswig-Holstein" ]; then
S="http://www.ndr.de/resources/metadaten/audio/m3u/ndr2.m3u"
elif [ "$opt" == "Nordrhein-Westfalen" ]; then
S="http://www.wdr.de/wdrlive/media/wdr2.m3u"
elif [ "$opt" == "Saarland" ]; then
S="http://streaming01.sr-online.de/sr3_2.m3u"
elif [ "$opt" == "Sachsen/Sachsen-Anhalt/Thueringen" ]; then
S="http://avw.mdr.de/livestreams/mdr_info_live_128.m3"
elif [ "$opt" == "Sport1.fm" ]; then
array2=( http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel1.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel2.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel3.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel4.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel5.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_Einzel6.mp3 \
http://stream.sport1.fm/api/livestream-redirect/SPORT1FM_24_7.mp3 )
select opt in "${array2[@]}"; do
mpg123 -m -b 1000 -@ "$opt" &
break
done
fi
mpg123 -m -b 1000 -@ "$S" &
..gnutella..
-
simgin
- Meme Fodder
- Posts: 1167
- Joined: Sun Jan 06, 2013 12:07 am
- Location: Bradford-on-Avon, UK
Unread post
by simgin » Sun May 03, 2015 12:05 pm
Bayern Munich uber alles :D
Someone told me that I am delusional, I almost fell off my unicorn.
-
rhowaldt
- Dog
- Posts: 4565
- Joined: Wed Oct 17, 2012 9:01 am
-
Contact:
Unread post
by rhowaldt » Sun May 03, 2015 2:03 pm
Bayern *München* :)
probably not gonna watch, but maybe my GF's German friend who is coming over next week will be interested! thanks Jules!
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Sun May 03, 2015 3:12 pm
Ladies, this is RADIO.
Of course you try watching TV via mpg123 :)
..gnutella..
-
rhowaldt
- Dog
- Posts: 4565
- Joined: Wed Oct 17, 2012 9:01 am
-
Contact:
Unread post
by rhowaldt » Sun May 03, 2015 3:44 pm
ooh damn... hahaha :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
-
machinebacon
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
-
Contact:
Unread post
by machinebacon » Sun May 03, 2015 4:55 pm
stanislaus said, you can watch the mp3 stream as video in mp321 if you enable --frowantje_ana1 and compile with SCHL0N6_STRAP set to 'on'...
..gnutella..
-
rhowaldt
- Dog
- Posts: 4565
- Joined: Wed Oct 17, 2012 9:01 am
-
Contact:
Unread post
by rhowaldt » Sun May 03, 2015 6:40 pm
damn Stanislaus, always has these great tips, i swear to Dog he eats compilers for breakfast.
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.