Articles

101.ru воспроизведение в консоли, mplayer Ubuntu Linux

Слушаем радио 101.ru в консоли, mplayer, Ubuntu Linux

Удобный скрипт для прослушивания радиостаций за пределами браузера(извини 101.ru).

Исправленный скрипт(URL fixed) с http://www.gentoo.ru/node/22596

 

#!/bin/bash
# Написан rootkit'ом при поддержке форумчан www.gentoo.ru :)
# Оптимизирован коллективно :) Теперь он сперва стартует streamripper, а после mplayer, благодаря чему
# в консоли мы видим названия треков на русском языке :) Если у кого-то другая кодировка на компе, то
# просто смените её ниже...
# 15.04.2011
# Первый скрипт на BASH

# SPECIAL CODE

RFR="http://www.101.ru/"
QUICKLY="--codeset-filesys=utf-8 --codeset-metadata=cp1251 -u Mozilla/5.0 Gecko/20101209 Firefox/3.6.13 -d /home/Music/Radio101Ru/"

while true; do

while true; do
    echo
    echo "Вы запустили скрипт радиостанций www.101.ru. Выберите Сервер из списка"
echo -----------EN----------- ---------ROCK--------- -----------RU-----------
echo
echo "01 NRJ Hot traxx........|" "28 Pink Floyd........|" "36 NRJ Russian Dance..|"
echo "02 NRJ ClubDance........|" "29 Queen.............|" "37 Russia Top 50......|"
echo "03 NRJ In The Mix.......|" "30 NRJ Rock..........|" "38 Русский Рэп........|"
echo "04 NRJ House............|" "31 Rock Guitar.......|" "39 Дискотека 80х......|"
echo "05 Chill Out............|" "32 Rock..............|" "40 Russia 90’s........|"
echo "06 NRJ trance...........|" "33 Rock Remakes......|" "41 Высоцкий...........|"
echo "07 NRJ Electro..........|" "34 Rock-Koleso.......|" "42 Шансон.............|"
echo "08 NRJ Progressive......|" "35 Русский Рок.......|" "43 Русское Регги......|"
echo "09 NRJ Psy/Goa trance...|" "53 Ленинград.........|" "44 Парад Пародий......|"
echo "10 RJ Gangsta/Hip-Hop...|......................|" "45 Юмор Non-Stop  ....|"
echo "11 NRJ breakbeat........|......................|" "46 Анекдот............|"
echo "12 Funk & Soul..........|......................|" "47 СССР 30-50.........|"
echo "13 NRJ Drum & Bass......|......................|" "48 СССР 50-70.........|"
echo "14 NRJ Jump.............|......................|" "54 BI-2...............|"
echo "15 NRJ Techno...........|......................|" "55 Agatha Christy.....|"
echo "16 NRJ R&B..............|"
echo "49 NRJ Minimal..........|"
echo "50 NRJ Electronic.......|"
echo "51 NRJ DubStep..........|"
echo "52 Chill Out........... |"
echo "17 Jazz.................|"
echo "18 Live Hits............|"
echo "19 Euro Hits............|"
echo "57 Robbie Williams......|"
echo "20 Depeche Mode.........|"
echo "21 Michael Jackson......|"
echo "22 U2...................|"
echo "23 Love Songs...........|"
echo "24 Erotic...............|"
echo "25 France...............|"
echo "26 90's Dance...........|"
echo "27 90's Gold............|"
echo "56 90's Pop.............|"
echo "0: ............ВЫХОД....|"
echo
    read doing
    case $doing in
        0) exit;;
    1) URL="http://eu4.101.ru:8000/c4_4";;
    2) URL="http://eu4.101.ru:8000/c4_2";;
    3) URL="http://eu4.101.ru:8000/c14_3";;
    4) URL="http://eu4.101.ru:8000/c6_5";;
    5) URL="http://eu4.101.ru:8000/c15_3";;
    6) URL="http://eu4.101.ru:8000/c13_3";;
    7) URL="http://eu4.101.ru:8000/c6_3";;
    8) URL="http://eu4.101.ru:8000/c8_4";;
    9) URL="http://eu4.101.ru:8000/c16_22";;
    10) URL="http://eu4.101.ru:8000/c14_11";;
    11) URL="http://eu4.101.ru:8000/c16_11";;
    12) URL="http://eu4.101.ru:8000/c9_4";;
    13) URL="http://eu4.101.ru:8000/c12_3";;
    14) URL="http://eu4.101.ru:8000/c14_17";;
    15) URL="http://eu4.101.ru:8000/c17_3";;
    16) URL="http://eu4.101.ru:8000/c4_3";;
    17) URL="http://eu4.101.ru:8000/c10_5";;
    18) URL="http://eu4.101.ru:8000/c15_5";;
    19) URL="http://eu4.101.ru:8000/c16_13";;
    20) URL="http://eu4.101.ru:8000/c13_14";;
    21) URL="http://eu4.101.ru:8000/c10_2";;
    22) URL="http://eu4.101.ru:8000/c13_18";;
    23) URL="http://eu4.101.ru:8000/c9_1";;
    24) URL="http://eu4.101.ru:8000/c14_13";;
    25) URL="http://eu4.101.ru:8000/c16_17";;
    26) URL="http://eu4.101.ru:8000/c7_8";;
    27) URL="http://eu4.101.ru:8000/c6_2";;
    28) URL="http://eu4.101.ru:8000/c8_2";;
    29) URL="http://eu4.101.ru:8000/c13_1";;
    30) URL="http://eu4.101.ru:8000/c11_1";;
    31) URL="http://eu4.101.ru:8000/c15_1";;
    32) URL="http://eu4.101.ru:8000/c1_4";;
    33) URL="http://eu4.101.ru:8000/c7_9";;
    34) URL="http://eu4.101.ru:8000/c7_5";;
    35) URL="http://eu4.101.ru:8000/c1_2";;
    36) URL="http://eu4.101.ru:8000/c4_6";;
    37) URL="http://eu4.101.ru:8000/c4_5";;
    38) URL="http://eu4.101.ru:8000/c1_3";;
    39) URL="http://eu4.101.ru:8000/c7_3";;
    40) URL="http://eu4.101.ru:8000/c6_1";;
    41) URL="http://eu4.101.ru:8000/c11_3";;
    42) URL="http://eu4.101.ru:8000/c9_2";;
    43) URL="http://eu4.101.ru:8000/c14_4";;
    44) URL="http://eu4.101.ru:8000/c5_3";;
    45) URL="http://eu4.101.ru:8000/c2_4";;
    46) URL="http://eu4.101.ru:8000/c3_5";;
    47) URL="http://eu4.101.ru:8000/c14_59";;
    48) URL="http://eu4.101.ru:8000/c12_1";;
    49) URL="http://eu4.101.ru:8000/c15_15";;
    50) URL="http://eu4.101.ru:8000/c15_20";;        
    51) URL="http://eu4.101.ru:8000/c15_24";;
    52) URL="http://eu4.101.ru:8000/c15_3";;
    53) URL="http://eu4.101.ru:8000/c15_21";;
    54) URL="http://eu4.101.ru:8000/c15_23";;
    55) URL="http://eu4.101.ru:8000/c17_20";;
    56) URL="http://eu4.101.ru:8000/c15_10";;
    57) URL="http://eu4.101.ru:8000/c16_19";;
    
        *) echo "Нет такой радиостанции. Выберите другую!";;
    esac

    if [ ! -z $URL ]; then
        break
    fi
done

streamripper "$URL" $QUICKLY & mplayer "$URL" -cache 500 -referrer "$RFR"

done


 

Tags: 101.ru, радио, онлайн, список, console, консоль, mplayer, radio, Ubuntu, Linux

Share