vak: (Default)
[personal profile] vak
Вот такой скрипт получился.


#!/bin/bash
#
# Start radio broadcast from one of listed stations.
#
declare -a list=(
    http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
    "BBC Radio One"

    http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws
    "BBC World Service English News"

    http://50.31.186.115:80/kqedradio
    "KQED Public Radio"

    http://16643.live.streamtheworld.com:80/KDFCFM_SC
    "KDFC Classical"

    http://19473.live.streamtheworld.com:80/KFOGFM_SC
    "KFOG"

    http://amberradio.org:8000/mp3
    "Amber Radio"

    http://ic2.101.ru:8000/c16_15
    "Радио Аквариум"

    http://online-radioroks.tavrmedia.ua:8000/RadioROKS
    "Радио РОКС"

    http://109.68.190.202:8131/stream
    "Радио Сябры"

    http://ant-waw-01.cdn.eurozet.pl:8602/
    "Antyradio Warszawa"
)

exec 3>&1
url=`${DIALOG:-dialog} 2>&1 1>&3 \
    --no-tags \
    --title " Radio " \
    --menu "Choose Station:" 0 40 11 "${list[@]}"`

killall mpg123 2>/dev/null && sleep 1
if [ -n "$url" ]; then
    mpg123 "$url" &
fi
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.