You are not logged in.

#1 2017-08-23 19:13:46

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Poor Man's Radio Player - simple yet brilliant radio player

This post was inspired by a thread about yad and all credit goes to the thread participants there, especially to damo and misko_2083, who created the application called Poor Man's Radio Player GUI, which app goes back to hackerdefo's script called pmrp.

All the relevant info about the Poor Man's Radio Player GUI is in that thread already. However I thought it's a bit "lost in the haystack" there and it's so great that it deserves its own thread. This is what I'm talking about, the Poor Man's Radio Player GUI:


poormansradio.th.png


Channels can be loaded after choosing a certain Category and the player can be closed to the system tray. It also shows a log with the titles of the songs played (does not work with some stations) and it's possible to pause the stream.



How to install Poor Man's Radio Player GUI?

The Poor Man's Radio Player GUI requires yad and mpv. It has two parts: A bash script called pmrp and a file with radio channels named "stations". It is possible to start this player via (dynamic) menu entry (or via dock or desktop icon), so for this case a third file called pmrp.desktop will be created.


1. Open your favorite text editor, paste the following script and save it as pmrp in ~/bin (which is the directory /home/UserName/bin/):

#!/bin/bash
#This PMRP GUI script was created by misko_2083. It is based on hakerdefo's pmrp - https://github.com/hakerdefo/pmrp
command -v mpv >/dev/null 2>&1 || (yad --text="PMRP requires 'mpv' but it's not installed!\nInstall 'mpv' to enjoy PMRP."; exit 1)

TEXTDOMAIN=ydesk
TEXTDOMAINDIR=/usr/share/locale

export LANG=C.UTF-8
export pmrp='@bash -c "run_stations %2"'
export pmrp_stations="$HOME/.config/pmrp/stations"

export fpipe=$(mktemp -u --tmpdir pmrp.XXXXXXXX)
export ppipe=$(mktemp -u --tmpdir ppmrp.XXXXXXXX)
export cpipe=$(mktemp -u --tmpdir cpmrp.XXXXXXXX)
export statuspipe=$(mktemp -u --tmpdir cpmrp.XXXXXXXX)
export PMRPLIST=$(mktemp -u --tmpdir PMRPLIST.XXXXXXXX)

# Pipe for setting values in the form tab
mkfifo "$fpipe"
# control pipe - send commands to mpv
mkfifo "$cpipe"
# status pipe - send text to left text pane
mkfifo "$statuspipe"

# Create the list file
> $PMRPLIST

#File to store default category
export CAT_FILE=$(mktemp -u --tmpdir pmrpcat.XXXXXXXX)
> $CAT_FILE

trap "rm -f $fpipe $ppipe $cpipe $statuspipe $PMRPLIST $CAT_FILE" EXIT

pmkey=$(($RANDOM * $$))

# Categories are separated with "!" (without quotes)
# The last item in category is without trailing "!"
Categories="181.FM!
Blues!
Urban"

function stations
{
   if [[ "$1" != "$CAT_DEFAULT" ]]; then
      echo "Category: $1" >> "$ppipe"
   fi
   < "$pmrp_stations" sed -n -e 's/^.*'"$1: "'//p' \
   | sed -e $'s/\" \"/\\\n/g;s/\"//g' >> "$fpipe"
}
export -f stations

function run_stations
{
    echo "3:@disabled@"
    echo -e '\f' >> "$fpipe"

    echo "$1" > "$CAT_FILE"

    case "$1" in
	181.FM)
          stations "$1"
	    ;;
	Blues)
          stations "$1"
	    ;;
	Urban)
          stations "$1"
	    ;;
         *)
          echo "PMRP: Error! No such Category $1" >> "$ppipe"
            ;;
    esac
    echo "3:$pmrp"
}
export -f run_stations

function load_url
{
    echo "Station: $1   Url: $3" >> $ppipe    
    # Station to the list
    echo "$3" > $PMRPLIST
    # Unload current Playlist
    echo "playlist_remove current" > $cpipe
    # Load list
    echo "loadlist $PMRPLIST" > $cpipe
}
export -f load_url

function status_block
{
if [[ ! -z "$PMRP" ]]; then
   unset PMRP
else
  if [[ "$(echo "$1" | grep -c "^Name*")" = 1 ]]; then
      STATION="$1"
  elif [[ "$(echo "$1" | grep -c "^Title*")" = 1 ]];then
      TITLE="$1"
      date +"Time: %T" >> $ppipe
  elif [[ "$(echo "$1" | grep -c "^Bitrate")" = 1 ]];then
      BITRATE="$1 Kb/s"
  elif [[ "$(echo "$1" | grep -c "^PMRP:*")" = 1 ]];then
      PMRP="$1"
  fi
  
  if [[ -z "$PMRP" ]]; then
    echo "$STATION\n$BITRATE\n$TITLE" >> "$statuspipe"
  else
    echo "\n$PMRP\n" >> "$statuspipe"
  fi
  
  CAT_DEFAULT="$(cat $CAT_FILE)"

  if [[ "$CAT_DEFAULT" == "" ]]; then
     CAT_DEFAULT="181.FM"
  fi

   echo "$(for category in $Categories
           do
             if [[ "$category" == "$CAT_DEFAULT" ]]; then
                printf "^%s" "$CAT_DEFAULT"
             elif [[ "$category" != "$CAT_DEFAULT!" ]]; then
                printf "%s" "$category"
             else
                printf "^%s!" "$CAT_DEFAULT"
             fi
           done
          )" >> "$statuspipe"
   echo "$pmrp" >> "$statuspipe"
fi
}

exec 3<> $fpipe
exec 4<> $ppipe
exec 5<> $cpipe
exec 6<> $statuspipe

echo "PMRP: Ready to Play" >> "$ppipe"

killall mpv 2>/dev/null

  mpv --playlist=$PMRPLIST --input-file=$cpipe --cache 2048 --no-config --idle=yes 2>&1 \
     | awk '/[statusline]/{if ($0 ~ "icy-br:*") {gsub(/^.*icy-br:/,"");print "Bitrate  ", $0 ;}
                                 else {if ($0 ~ "icy-name:*") {gsub(/^.*icy-name:/,"");print "Name    ", $0;}
                                 else {if ($0 ~ "icy-genre:*") {gsub(/^.*icy-genre:/,"");print "Genre -", $0;}
                                 else {if ($0 ~ "icy-title:*") {gsub(/^.*icy-title:/,"");print "Title        ", $0;}}}}}
                                 {fflush(stdout)}'  | while read -r line; do status_block "$line"; echo "$line" >>"$ppipe"; done &
function main() {
  yad --plug="$pmkey" --tabnum=1 --form --cycle-read --field "":TXT --field "Category":CB  \
     --image-ontop --field="Load Stations!gtk-add:fbtn" <&6  &

  yad --plug="$pmkey" --tabnum=2 --list --no-markup --dclick-action='bash -c "load_url %s"' \
    --text "Double click to play" --text-align=center --column="Name" --column="Category" --column="Url" \
    --search-column=1 --expand-column=1 --print-column="3" <&3 &

  # comment out next line if you want to start with log
  # tail -f "$ppipe" | yad --text-info --title="PMRP-Log" --tail --window-icon=radio --width=600 --height=500 --button="gtk-close" &

  # loads fields on startup
  status_block "PMRP:   Poor Man's Radio Player"

  # Reprints metadata after returning from tray
  echo 'print_text ${metadata}' > $cpipe

  yad --paned --key="$pmkey" --button="Close to Tray!gtk-close":1 \
      --button="Show Log":'bash -c "tail -f -n +1 $ppipe | yad --text-info --tail --title=PMRP-Log --window-icon=radio --width=600 --height=500 --button=gtk-close" &' \
      --button="Pause/Continue":'bash -c "echo cycle pause >> $cpipe"' \
      --button="Stop":'bash -c "echo stop >> $cpipe"'  --text="Select a Category and click to Load Stations" --width=700 --height=500 \
      --title=$"PMRP" --splitter=300 --window-icon="radio" --orient=hor --image=radio --image-on-top --posx=10 --posy=100
RET="$?"

case $RET in
  252)
    echo "quit" >> $cpipe
    echo "PMRP: Preparing for radio silence" >> "$ppipe"
    echo "PMRP: Zzzzzzz" >> "$ppipe"
    ;;
   1)  yad --notification   \
          --image="radio"  \
          --text="PMRP"
        # Need to do this after returned from tray
        status_block ""
        run_stations "$(cat $CAT_FILE)" &>/dev/null
	main
    ;;
   *) exit 1
    ;;
esac
}
main


exec 3>&-
exec 4>&-
exec 5>&-
exec 6>&-

2. Make sure it has the correct permissions:

chmod 755 ~/bin/pmrp

3. As pmrp is in ~/bin, it can be started from terminal via pmrp. It requires a file called "stations" (without quotes) to load the channels. From which folder this file is loaded, is set in the script above by the "export pmrp_stations=" line. According to the script the "stations" file has to be in ~/.config/pmrp/, so let's create a pmrp directory in ~/.config and a file called stations there with the right permissions:

mkdir ~/.config/pmrp && touch ~/.config/pmrp/stations && chmod 660 ~/.config/pmrp/stations

Open this file called stations in ~/.config/pmrp, copy&paste the following content and save it there:

## Stations
# Tag: "Name" "Category" "URL"

## 181.FM
181.FM: "Jammin 181" "Urban" "http://relay.181.fm:8042"
181.FM: "Old School HipHop" "Urban" "http://relay.181.fm:8068"
181.FM: "The Beat" "Urban" "http://relay.181.fm:8054"
181.FM: "The Box" "Urban" "http://relay.181.fm:8024"
181.FM: "True R&B" "Urban" "http://relay.181.fm:8022"
181.FM: "Chilled Out" "Techno" "http://relay.181.fm:8700"
181.FM: "Energy 93" "Techno" "http://relay.181.fm:8044"
181.FM: "Energy 98" "Techno" "http://relay.181.fm:8800"
181.FM: "Studio 181" "Techno" "http://relay.181.fm:8072"
181.FM: "Techno Club" "Techno" "http://icyrelay.181.fm/181-technoclub_128k.mp3"
181.FM: "The Vibe of Vegas" "Techno" "http://relay.181.fm:8074"
181.FM: "80's Hairband" "Rock" "http://relay.181.fm:8014"
181.FM: "Chloe" "Rock" "http://relay.181.fm:8100"
181.FM: "Classic Buzz" "Rock" "http://relay.181.fm:8038"
181.FM: "Rock 181" "Rock" "http://relay.181.fm:8008"
181.FM: "Rock 40" "Rock" "http://relay.181.fm:8028"
181.FM: "The Buzz" "Rock" "http://relay.181.fm:8126"
181.FM: "The Eagle" "Rock" "http://relay.181.fm:8030"
181.FM: "The Rock" "Rock" "http://relay.181.fm:8064"
181.FM: "Party 181" "Pop" "http://relay.181.fm:8036"
181.FM: "Power 181" "Pop" "http://relay.181.fm:8128"
181.FM: "Smooth AC" "Pop" "http://relay.181.fm:8094"
181.FM: "The Heart" "Pop" "http://relay.181.fm:8006"
181.FM: "The Mix" "Pop" "http://relay.181.fm:8032"
181.FM: "The Office" "Pop" "http://relay.181.fm:8002"
181.FM: "The Point" "Pop" "http://relay.181.fm:8010"
181.FM: "UK Top 40" "Pop" "http://relay.181.fm:8070"
181.FM: "Beatles" "Oldies" "http://relay.181.fm:8062"
181.FM: "Classic Hits" "Oldies" "http://relay.181.fm:8132"
181.FM: "Good Time Oldies" "Oldies" "http://relay.181.fm:8046"
181.FM: "Mellow Gold" "Oldies" "http://relay.181.fm:8060"
181.FM: "Soul" "Oldies" "http://relay.181.fm:8058"
181.FM: "Super 70s" "Oldies" "http://relay.181.fm:8066"
181.FM: "Reggae Roots" "Latin" "http://relay.181.fm:8096"
181.FM: "Salsa" "Latin" "http://relay.181.fm:8098"
181.FM: "Acid Jazz" "Easy" "http://icyrelay.181.fm/181-acidjazz_128k.mp3"
181.FM: "Bebop" "Easy" "http://icyrelay.181.fm/181-bebop_128k.mp3"
181.FM: "Classical Guitar" "Easy" "http://icyrelay.181.fm/181-classicalguitar_128k.mp3"
181.FM: "Classical Jazz" "Easy" "http://icyrelay.181.fm/181-classicaljazz_128k.mp3"
181.FM: "Classical Music" "Easy" "http://icyrelay.181.fm/181-classical_128k.mp3"
181.FM: "Fusion Jazz" "Easy" "http://icyrelay.181.fm/181-fusionjazz_128k.mp3"
181.FM: "Sensual World" "Easy" "http://icyrelay.181.fm/181-sensual_128k.mp3"
181.FM: "The Breeze" "Easy" "http://relay.181.fm:8004"
181.FM: "Trance Jazz" "Easy" "http://icyrelay.181.fm/181-trancejazz_128k.mp3"
181.FM: "True Blues" "Easy" "http://icyrelay.181.fm/181-blues_128k.mp3"
181.FM: "Vocal Jazz" "Easy" "http://icyrelay.181.fm/181-vocals_128k.mp3"
181.FM: "Front Porch" "Country" "http://relay.181.fm:8016"
181.FM: "Highway 181" "Country" "http://relay.181.fm:8018"
181.FM: "Kickin' Country" "Country" "http://relay.181.fm:8130"
181.FM: "Real Country" "Country" "http://relay.181.fm:8034"
181.FM: "US 181" "Country" "http://relay.181.fm:8056"
181.FM: "Comedy Club" "Comedy" "http://relay.181.fm:8026"
181.FM: "90's Alternative" "90s" "http://relay.181.fm:8052"
181.FM: "90's Country" "90s" "http://relay.181.fm:8050"
181.FM: "90's Dance" "90s" "http://relay.181.fm:8140"
181.FM: "Lite 90's" "90s" "http://relay.181.fm:8048"
181.FM: "Star 90's" "90s" "http://relay.181.fm:8012"
181.FM: "80's Country" "80s" "http://relay.181.fm:8134"
181.FM: "Awesome 80's" "80s" "http://relay.181.fm:8000"
181.FM: "Lite 80's" "80s" "http://relay.181.fm:8040"

## Blues
Blues: "12 Bar" "Blues" "http://streaming.radionomy.com:80/12Bar"
Blues: "A Better Classic Blues Vintage Station" "Blues" "http://streaming.radionomy.com/A-Better-Classic-Blues-Vintage-Station"
Blues: "A Blues Dream" "Blues" "http://streaming.radionomy.com/ABLUESDREAM-Classic-NewBlues24H"
Blues: "Aardvark Blues FM" "Blues" "http://74.208.45.146:8639/stream"
Blues: "AcousticFM" "Blues" "http://listen.radionomy.com/Acoustic-FM"
Blues: "Best Blues I Know" "Blues" "http://streaming.radionomy.com/BestBluesIKnow"
Blues: "Blues Radio" "Blues" "http://185.33.22.13:8030"
Blues: "Cocktelera Blues" "Blues" "http://streaming.radionomy.com/Cocktelera-Blues"
Blues: "Con Alma de Blues" "Blues" "http://listen.radionomy.com/Con-Alma-de-Blues"
Blues: "Funky Blues" "Blues" "http://streaming.radionomy.com/FunkyBlues"
Blues: "Big Blue Swing" "Blues" "http://209.236.126.18:8002"
Blues: "Blues Radio UK" "Blues" "http://206.217.213.16:8430/"
Blues: "Crossroads Blues Radio" "Blues" "http://174.127.114.128:8134/stream"
Blues: "Houston Blues Radio" "Blues" "http://74.208.170.137:8640/stream"
Blues: "K-BLUES" "Blues" "http://listen.radionomy.com:80/K-BLUES"
Blues: "Radio Mississipi Blues" "Blues" "http://listen.radionomy.com:80/RadioMississipi-Blues"

##Urban

4. For a dynamic menu entry (or a plank/desktop start icon) create a pmrp.desktop file (as root) in /usr/share/applications with the following content:

[Desktop Entry]
Name=Poor Man's Radio Player
Exec=pmrp
Terminal=false
Type=Application
Icon=radio
Categories=Player;Audio;AudioVideo;

5. If you start Poor Man's Radio Player GUI from the menu and there is no tint2 icon, check alt+tab (it might solve the issue). If it does not, copy the required icon with the following command and restart the player:

sudo cp /usr/share/icons/Faenza/apps/scalable/radio.svg /usr/share/icons/hicolor/scalable/apps



How to add radio stations?

Radio stations are divided into Categories. After clicking on "Load Stations" Poor Man's Radio Player will only show the channels which belong to the chosen category.



1. Adding a new radio station to an existing category:
Out of the box there are three categories defined (code lines 38-40): 181.FM, Blues and Urban. Now there is a radio called "Radio Bob" (http://bob.hoerradar.de/mp3-radiobob). In order to add this station to the category Urban (which is empty out-of-the-box), simply open the stations file and use the following format to add a new line under ##Urban:    Category: "Station Name" "Style" "Stream URL"

Urban: "Radio Bob" "Pop, Rock, 80's" "http://bob.hoerradar.de/mp3-radiobob"

2. Adding a new radio station to a new category:
Let's add a new category called "Custom_Channels" after the category called Urban.

i) First Custom_Channels has to be added to the pmrp script in the categories-section (lines 38-40). We need a "!" after Urban and a new line with Custom_Channels", so this section will look like this:

Categories="181.FM!
Blues!
Urban!
Custom_Channels"

The last item in the categories section of the code is without "!".

ii) Second this code:

Custom_Channels)
          stations "$1"
	    ;;

has to be added after the lines 67-69, which look like this

Urban)
          stations "$1"
	    ;;

so in the end this part of the code will look like:

case "$1" in
	181.FM)
          stations "$1"
	    ;;
	Blues)
          stations "$1"
	    ;;
	Urban)
          stations "$1"
	    ;;
	Custom_Channels)
          stations "$1"
	    ;;
         *)
          echo "PMRP: Error! No such Category $1" >> "$ppipe"
            ;;

iii) Third the stations file has to be changed too, which is simply enough: Add ## Custom_Channels at the end of the file, so with Radio Bob it will look like:

## Custom_Channels
Custom_Channels: "Radio Bob" "Pop, Rock, 80's" "http://bob.hoerradar.de/mp3-radiobob"

Actually it's easier to do it than to explain it.




Radio Stations

It would be great to post some radio stations in this thread. Ideally in the format for the Poor Man's Radio Player, so the stations could be used simply via "copy&paste" in the stations file.

Well, I should not just talk about it, let's start here with some stations I just discovered (these stations can be used via "copy&paste" under the ##Urban category):

Urban: "00's Club Hits" "Dance" "http://pub1.diforfree.org:8000/di_00sclubhits_hi"
Urban: "Ambient" "Ambient" "http://pub1.diforfree.org:8000/di_ambient_hi"
Urban: "Atmospheric Breaks" "Atmospheric" "http://pub1.diforfree.org:8000/di_atmosphericbreaks_hi"
Urban: "Bass & Jackin' House" "House" "http://pub1.diforfree.org:8000/di_bassnjackinhouse_hi"
Urban: "Bassline" "Bassline" "http://pub2.diforfree.org:8000/di_bassline_hi"
Urban: "Big Beat" "Big Beat" "http://pub1.diforfree.org:8000/di_bigbeat_hi"
Urban: "Big Room House" "House" "http://pub1.diforfree.org:8000/di_bigroomhouse_hi"
Urban: "Breaks" "Breaks" "http://pub1.diforfree.org:8000/di_breaks_hi"
Urban: "Chill & Tropical House" "Chill & Tropical House" "http://pub2.diforfree.org:8000/di_chillntropicalhouse_hi"
Urban: "ChillHop" "ChillHop" "http://pub1.diforfree.org:8000/di_chillhop_hi"
Urban: "Chillout" "Chillout" "http://pub1.diforfree.org:8000/di_chillout_hi"
Urban: "Chillout Dreams" "Chillout" "http://pub1.diforfree.org:8000/di_chilloutdreams_hi"
Urban: "Chillstep" "Chillstep" "http://pub1.diforfree.org:8000/di_chillstep_hi"
Urban: "Classic Eurodance" "Dance" "http://pub1.diforfree.org:8000/di_classiceurodance_hi"
Urban: "Classic Eurodisco" "Disco" "http://pub1.diforfree.org:8000/di_classiceurodisco_hi"
Urban: "Classic Trance" "Trance" "http://pub1.diforfree.org:8000/di_classictrance_hi"
Urban: "Classic Vocal Trance" "Trance" "http://pub1.diforfree.org:8000/di_classicvocaltrance_hi"
Urban: "Club Dubstep" "Dubstep" "http://pub1.diforfree.org:8000/di_clubdubstep_hi"
Urban: "Club Sounds" "Club Sounds" "http://pub2.diforfree.org:8000/di_club_hi"
Urban: "DJ Mixes" "Mixes" "http://pub1.diforfree.org:8000/di_djmixes_hi"
Urban: "Dark DnB" "DnB" "http://pub1.diforfree.org:8000/di_darkdnb_hi"
Urban: "Dark PsyTrance" "Trance" "http://pub1.diforfree.org:8000/di_darkpsytrance_hi"
Urban: "Deep House" "House" "http://pub1.diforfree.org:8000/di_deephouse_hi"
Urban: "Deep Nu-Disco" "Deep Nu-Disco" "http://pub1.diforfree.org:8000/di_deepnudisco_hi"
Urban: "Deep Tech" "Deep Tech" "http://pub1.diforfree.org:8000/di_deeptech_hi"
Urban: "Disco House" "House" "http://pub1.diforfree.org:8000/di_discohouse_hi"
Urban: "Downtempo Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_downtempolounge_hi"
Urban: "Drum and Bass" "DnB" "http://pub1.diforfree.org:8000/di_drumandbass_hi"
Urban: "Dub" "Dub" "http://pub1.diforfree.org:8000/di_dub_hi"
Urban: "Dub Techno" "Dub Techno" "http://pub1.diforfree.org:8000/di_dubtechno_hi"
Urban: "Dubstep" "Dubstep" "http://pub1.diforfree.org:8000/di_dubstep_hi"
Urban: "EBM" "EBM" "http://pub1.diforfree.org:8000/di_ebm_hi"
Urban: "Eclectronica" "Eclectronica" "http://pub1.diforfree.org:8000/di_eclectronica_hi"
Urban: "Electro House" "House" "http://pub1.diforfree.org:8000/di_electrohouse_hi"
Urban: "Electro Swing" "Electro" "http://pub1.diforfree.org:8000/di_electroswing_hi"
Urban: "Electropop" "Electropop" "http://pub1.diforfree.org:8000/di_electropop_hi"
Urban: "Epic Trance" "Trance" "http://pub1.diforfree.org:8000/di_epictrance_hi"
Urban: "Euro Dance" "Dance" "http://pub1.diforfree.org:8000/di_eurodance_hi"
Urban: "Funky House" "House" "http://pub1.diforfree.org:8000/di_funkyhouse_hi"
Urban: "Future Bass" "Future Bass" "http://pub1.diforfree.org:8000/di_futurebass_hi"
Urban: "Future Garage" "Future Garage" "http://pub1.diforfree.org:8000/di_futuregarage_hi"
Urban: "Future Synthpop" "Synthpop" "http://pub1.diforfree.org:8000/di_futuresynthpop_hi"
Urban: "Gabber" "Gabber" "http://pub1.diforfree.org:8000/di_gabber_hi"
Urban: "Hands Up" "Hands Up" "http://pub1.diforfree.org:8000/di_handsup_hi"
Urban: "Hard Dance" "Dance" "http://pub1.diforfree.org:8000/di_harddance_hi"
Urban: "Hard Techno" "Techno" "http://pub1.diforfree.org:8000/di_hardtechno_hi"
Urban: "Hardstyle" "Hardstyle" "http://pub1.diforfree.org:8000/di_hardstyle_hi"
Urban: "House" "House" "http://pub1.diforfree.org:8000/di_house_hi"
Urban: "IDM" "IDM" "http://pub1.diforfree.org:8000/di_idm_hi"
Urban: "Indie Dance" "Indie Dance" "http://pub1.diforfree.org:8000/di_indiedance_hi"
Urban: "Jazz House" "House" "http://pub1.diforfree.org:8000/di_jazzhouse_hi"
Urban: "Jungle" "Jungle" "http://pub1.diforfree.org:8000/di_jungle_hi"
Urban: "Latin House" "Latin House" "http://pub1.diforfree.org:8000/di_latinhouse_hi"
Urban: "Liquid DnB" "Liquid DnB" "http://pub1.diforfree.org:8000/di_liquiddnb_hi"
Urban: "Liquid Dubstep" "Liquid Dubstep" "http://pub1.diforfree.org:8000/di_liquiddubstep_hi"
Urban: "Liquid Trap" "Liquid Trap" "http://pub1.diforfree.org:8000/di_liquidtrap_hi"
Urban: "Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_lounge_hi"
Urban: "Mainstage" "Mainstage" "http://pub1.diforfree.org:8000/di_mainstage_hi"
Urban: "Melodic Progressive" "Melodic Progressive" "http://pub2.diforfree.org:8000/di_melodicprogressive_hi"
Urban: "Minimal" "Minimal" "http://pub1.diforfree.org:8000/di_minimal_hi"
Urban: "Nightcore" "Nightcore" "http://pub2.diforfree.org:8000/di_nightcore_hi"
Urban: "Nu Disco" "Nu Disco" "http://pub1.diforfree.org:8000/di_nudisco_hi"
Urban: "Oldschool Acid" "Oldschool Acid" "http://pub1.diforfree.org:8000/di_oldschoolacid_hi"
Urban: "Oldschool House" "House" "http://pub2.diforfree.org:8000/di_oldschoolhouse_hi"
Urban: "Progressive" "Progressive" "http://pub1.diforfree.org:8000/di_progressive_hi"
Urban: "Progressive Psy" "Progressive Psy" "http://pub1.diforfree.org:8000/di_progressivepsy_hi"
Urban: "PsyChill" "PsyChill" "http://pub1.diforfree.org:8000/di_psychill_hi"
Urban: "PsyBient" "PsyBient" "http://pub1.diforfree.org:8000/di_psybient_hi"
Urban: "Russian Club Hits" "Russian" "http://pub1.diforfree.org:8000/di_russianclubhits_hi"
Urban: "Soulful House" "Soulful House" "http://pub1.diforfree.org:8000/di_soulfulhouse_hi"
Urban: "Space Dreams" "Space Dreams" "http://pub1.diforfree.org:8000/di_spacemusic_hi"
Urban: "Tech House" "Tech House" "http://pub1.diforfree.org:8000/di_techhouse_hi"
Urban: "Techno" "Techno" "http://pub1.diforfree.org:8000/di_techno_hi"
Urban: "Trance" "Trance" "http://pub1.diforfree.org:8000/di_trance_hi"
Urban: "Trap" "Trap" "http://pub1.diforfree.org:8000/di_trap_hi"
Urban: "Tribal House" "House" "http://pub1.diforfree.org:8000/di_tribalhouse_hi"
Urban: "UMF Radio" "UMF Radio" "http://pub1.diforfree.org:8000/di_umfradio_hi"
Urban: "Underground Techno" "Techno" "http://pub1.diforfree.org:8000/di_undergroundtechno_hi"
Urban: "Vocal Chillout" "Chillout" "http://pub1.diforfree.org:8000/di_vocalchillout_hi"
Urban: "Vocal Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_vocallounge_hi"
Urban: "Vocal Trance" "Trance" "http://pub1.diforfree.org:8000/di_vocaltrance_hi"
Urban: "Classic Electronica" "Electronica" "http://pub1.diforfree.org:8000/di_classicelectronica_hi"


Non working channels 08/17:

Urban: "***Detroit House and Techno" "House and Techno" "http://pub1.diforfree.org:8000/di_detroithousentechno_hi"
Urban: "***Drumstep" "Drumstep" "http://pub1.diforfree.org:8000/di_drumstep_hi"
Urban: "***Electronic Pioneers" "Electro" "http://pub1.diforfree.org:8000/di_electronicpioneers_hi"
Urban: "***Electronics" "Electronics" "http://pub1.diforfree.org:8000/di_electronics_hi"
Urban: "***Glitch Hop" "Glitch Hop" "http://pub1.diforfree.org:8000/di_glitchhop_hi"
Urban: "***Goa & Psychedelic Trance" "Goa & Psy Trance" "http://pub1.diforfree.org:8000/di_goapsy_hi"
Urban: "***Hardcore" "Hardcore" "http://pub1.diforfree.org:8000/di_hardcore_hi"
Urban: "***Indie Beats" "Indie Beats" "http://pub1.diforfree.org:8000/di_indiebeats_hi"
Urban: "***Oldschool Rave" "Rave" "http://pub1.diforfree.org:8000/di_oldschoolrave_hi"
Urban: "***Oldschool Techno & Trance" "Techno & Trance" "http://pub1.diforfree.org:8000/di_classictechno_hi"

Edit: Just cleaned up those di.fm stations - there are around 90 channels, ten of which did not seem to work (non working channels are at the bottom). If you prefer to play those channels in the mediaplayer of your choice like audacious, here is the playlist:  http://diforfree.org/pls/di_hi.m3u

Last edited by martix (2017-08-26 08:28:17)

Offline

#2 2017-08-23 19:41:29

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

I would just like to point out that I have made no contributions to the PMRP script wink


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-08-23 22:55:31

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

^Well, if not to that script, but surely a lot to that yad thread! It's not too late anyway.  tongue   A small feature showing the connection process and giving some feedback might be nice.  cool

Or a more complicated one: A feature that would start if a new song starts and on a click it'd put it as mp3 in a defined folder.

Anyhow I like this app - simple, easy to configure and it does what it should do: Playing radio stations.

Offline

#4 2017-08-24 19:52:51

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

Ain't nobody wanting to add a few stations? Well, in that case I will do that... glasses

The following channels are from soma.fm, which I discovered thanks to a post by forum member ohnonot. There is also a great command from ohnonot, which downloads the files for all the stations available:

wget --recursive --no-directories --level=2 --accept pls,PLS,m3u,M3U --reject "*32.pls","*24.pls" http://somafm.com/

We can have all the 34 channels (as of 08/17) in PMRP as well. This is how it looks:

soma-fm_on_the_pmrp.th.png


And here is the code for the stations (for this configuration the category "soma.fm" has to be created first - see OP). If you prefer to save bandwith and use lower quality version, just replace in the URLs "128-mp3" by "32-aac" (-> less than 6 KB/s).

## soma.fm
soma.fm: "Black Rock FM" "For the annual Burning Man festival" "http://ice1.somafm.com/brfm-128-mp3"
soma.fm: "Drone Zone" "Atmospheric textures with minimal beats" "http://ice1.somafm.com/dronezone-128-mp3"
soma.fm: "Groove Salad" "Ambient/downtempo beats and grooves" "http://ice1.somafm.com/groovesalad-128-mp3"
soma.fm: "SF in SF Podcast" "Sci-Fi in San Francisco-author readings" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "DEF CON Radio" "The DEF CON Year-Round Channel" "http://ice1.somafm.com/defcon-128-mp3"
soma.fm: "Fluid" "Instrumental hiphop, future soul and liquid trap" "http://ice1.somafm.com/fluid-128-mp3"
soma.fm: "Lush" "Sensuous vocals with an electronic influence" "http://ice1.somafm.com/lush-128-mp3"
soma.fm: "Illionois Street Lounge" "Lounge" "http://ice1.somafm.com/illstreet-128-mp3"
soma.fm: "Left Coast 70s" "Mellow album rock from the Seventies" "http://ice1.somafm.com/seventies-128-mp3"
soma.fm: "Underground 80s" "Early 80s UK Synthpop and New Wave" "http://ice1.somafm.com/u80s-128-mp3"
soma.fm: "Boot Liquor" "Americana Roots music" "http://ice1.somafm.com/bootliquor-128-mp3"
soma.fm: "Digitalis" "Digitally affected analog rock" "http://ice1.somafm.com/digitalis-128-mp3"
soma.fm: "Deep Space One" "Deep ambient electronic, experimental and space music" "http://ice1.somafm.com/deepspaceone-128-mp3"
soma.fm: "Space Station Soma" "Spaced-out ambient and mid-tempo electronica" "http://ice1.somafm.com/spacestation-128-mp3"
soma.fm: "Sonic Universe" "Jazz with eclectic, avant-garde influence" "http://ice1.somafm.com/sonicuniverse-128-mp3"
soma.fm: "Suburbs of Goa" "Desi-influenced Asian world beats" "http://ice1.somafm.com/suburbsofgoa-128-mp3"
soma.fm: "Beat Blender" "Deep-house and downtempo chill" "http://ice1.somafm.com/beatblender-128-mp3"
soma.fm: "The Trip" "Progressive house / trance" "http://ice1.somafm.com/thetrip-128-mp3"
soma.fm: "cliqhop idm" "Intelligent Dance Music" "http://ice1.somafm.com/cliqhop-128-mp3"
soma.fm: "Dub Step Beyond" "Dubstep, Dub and Deep Bass" "http://ice1.somafm.com/dubstep-128-mp3"
soma.fm: "PopTron" "Electropop and indie dance rock with sparkle and pop" "http://ice1.somafm.com/poptron-128-mp3"
soma.fm: "Indie Pop Rocks!" "New and classic indie pop tracks" "http://ice1.somafm.com/indiepop-128-mp3"
soma.fm: "BAGeL Radio" "Alternative rock radio" "http://ice1.somafm.com/bagel-128-mp3"
soma.fm: "Seven Inch Soul" "Vintage soul tracks from 45 RPM vinyl" "http://ice1.somafm.com/7soul-128-mp3"
soma.fm: "ThistleRadio" "Music from Celtic roots and branches" "http://ice1.somafm.com/thistle-128-mp3"
soma.fm: "Folk Forward" "Indie Folk, Alt-folk and folk classics" "http://ice1.somafm.com/folkfwd-128-mp3"
soma.fm: "Covers" "Just covers" "http://ice1.somafm.com/covers-128-mp3"
soma.fm: "Secret Agent" "Soundtrack for stylish, mysterious life" "http://ice1.somafm.com/secretagent-128-mp3"
soma.fm: "Metal Detector" "Prog to sludge, thrash to post, stoner to crossover" "http://ice1.somafm.com/metal-128-mp3"
soma.fm: "The Silent Channel" "Light and dark ambient electronic music" "http://ice1.somafm.com/silent-128-mp3"
soma.fm: "Mission Control" "Celebrating NASA and Space Explorers" "http://ice1.somafm.com/missioncontrol-128-mp3"
soma.fm: "SF 10-33" "Ambient music mixed with San Francisco traffic" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "Doomed" "Dark industrial / ambient music" "http://ice1.somafm.com/doomed-128-mp3"
soma.fm: "Earwaves" "Electronic and experimental music" "http://ice1.somafm.com/earwaves-128-mp3"


And here are a few more to add from ohnonot's post: Original Electronic Music Radio and Echoes of Bluemars. If you like to add it to the ##Urban category, here is the code for the stations file:

Urban: "Original Electronic Music Radio" "Electronic" "http://167.114.64.181:8454/stream"
Urban: "Echoes of Bluemars" "Bluemars" "http://streams.echoesofbluemars.org:8000/bluemars.m3u"
Urban: "Echoes of Bluemars" "Cryosleep" "http://streams.echoesofbluemars.org:8000/cryosleep.m3u"
Urban: "Echoes of Bluemars" "Voices from Within" "http://streams.echoesofbluemars.org:8000/voicesfromwithin.m3u"

Last edited by martix (2017-08-26 07:37:49)

Offline

#5 2017-08-24 20:31:34

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Poor Man's Radio Player - simple yet brilliant radio player

martix wrote:

Ain't nobody wanting to add a few stations? Well, in that case I will do that... glasses

The following channels are from soma.fm, which I discovered thanks to a post by forum member ohnonot. There is also a great command from ohnonot, which downloads the files for all the stations available:

wget --recursive --no-directories --level=2 --accept pls,PLS,m3u,M3U --reject "*32.pls","*24.pls" http://somafm.com/

We can have all the 34 channels (as of 08/17) in PMRP as well. This is how it looks:

https://cdn.scrot.moe/images/2017/08/24/soma-fm_on_the_pmrp.th.png


And here is the code for the stations (for this configuration the category "soma.fm" has to be created first - see OP):

## soma.fm
soma.fm: "Black Rock FM" "For the annual Burning Man festival" "http://ice1.somafm.com/brfm-128-mp3"
soma.fm: "Drone Zone" "Atmospheric textures with minimal beats" "http://ice1.somafm.com/dronezone-128-mp3"
soma.fm: "Groove Salad" "Ambient/downtempo beats and grooves" "http://ice1.somafm.com/groovesalad-128-mp3"
soma.fm: "SF in SF Podcast" "Sci-Fi in San Francisco-author readings" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "DEF CON Radio" "The DEF CON Year-Round Channel" "http://ice1.somafm.com/defcon-128-mp3"
soma.fm: "Fluid" "Instrumental hiphop, future soul and liquid trap" "http://ice1.somafm.com/fluid-128-mp3"
soma.fm: "Lush" "Sensuous vocals with an electronic influence" "http://ice1.somafm.com/lush-128-mp3"
soma.fm: "Illionois Street Lounge" "Lounge" "http://ice1.somafm.com/illstreet-128-mp3"
soma.fm: "Left Coast 70s" "Mellow album rock from the Seventies" "http://ice1.somafm.com/seventies-128-mp3"
soma.fm: "Underground 80s" "Early 80s UK Synthpop and New Wave" "http://ice1.somafm.com/u80s-128-mp3"
soma.fm: "Boot Liquor" "Americana Roots music" "http://ice1.somafm.com/bootliquor-128-mp3"
soma.fm: "Digitalis" "Digitally affected analog rock" "http://ice1.somafm.com/digitalis-128-mp3"
soma.fm: "Deep Space One" "Deep ambient electronic, experimental and space music" "http://ice1.somafm.com/deepspaceone-128-mp3"
soma.fm: "Space Station Soma" "Spaced-out ambient and mid-tempo electronica" "http://ice1.somafm.com/spacestation-128-mp3"
soma.fm: "Sonic Universe" "Jazz with eclectic, avant-garde influence" "http://ice1.somafm.com/sonicuniverse-128-mp3"
soma.fm: "Suburbs of Goa" "Desi-influenced Asian world beats" "http://ice1.somafm.com/suburbsofgoa-128-mp3"
soma.fm: "Beat Blender" "Deep-house and downtempo chill" "http://ice1.somafm.com/beatblender-128-mp3"
soma.fm: "The Trip" "Progressive house / trance" "http://ice1.somafm.com/thetrip-128-mp3"
soma.fm: "cliqhop idm" "Intelligent Dance Music" "http://ice1.somafm.com/cliqhop-128-mp3"
soma.fm: "Dub Step Beyond" "Dubstep, Dub and Deep Bass" "http://ice1.somafm.com/dubstep-128-mp3"
soma.fm: "PopTron" "Electropop and indie dance rock with sparkle and pop" "http://ice1.somafm.com/poptron-128-mp3"
soma.fm: "Indie Pop Rocks!" "New and classic indie pop tracks" "http://ice1.somafm.com/indiepop-128-mp3"
soma.fm: "BAGeL Radio" "Alternative rock radio" "http://ice1.somafm.com/bagel-128-mp3"
soma.fm: "Seven Inch Soul" "Vintage soul tracks from 45 RPM vinyl" "http://ice1.somafm.com/7soul-128-mp3"
soma.fm: "ThistleRadio" "Music from Celtic roots and branches" "http://ice1.somafm.com/thistle-128-mp3"
soma.fm: "Folk Forward" "Indie Folk, Alt-folk and folk classics" "http://ice1.somafm.com/folkfwd-128-mp3"
soma.fm: "Covers" "Just covers" "http://ice1.somafm.com/covers-128-mp3"
soma.fm: "Secret Agent" "Soundtrack for stylish, mysterious life" "http://ice1.somafm.com/secretagent-128-mp3"
soma.fm: "Metal Detector" "Prog to sludge, thrash to post, stoner to crossover" "http://ice1.somafm.com/metal-128-mp3"
soma.fm: "The Silent Channel" "Light and dark ambient electronic music" "http://ice1.somafm.com/silent-128-mp3"
soma.fm: "Mission Control" "Celebrating NASA and Space Explorers" "http://ice1.somafm.com/missioncontrol-128-mp3"
soma.fm: "SF 10-33" "Ambient music mixed with San Francisco traffic" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "Doomed" "Dark industrial / ambient music" "http://ice1.somafm.com/doomed-128-mp3"
soma.fm: "Earwaves" "Electronic and experimental music" "http://ice1.somafm.com/earwaves-128-mp3"


And here is one more to add from ohnonot's post: Original Electronic Music Radio. If you like to add it to the ##Urban category, here is the code for the stations file:

Urban: "Original Electronic Music Radio" "Electronic" "http://167.114.64.181:8454/stream"

Oh, now you have my interest. I usually run multiple instances of streamripper against its stations.

Offline

#6 2017-08-24 20:46:25

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

@martix - perhaps this script should have a new name? @misko's yad script is a gui based on the idea of hakerdefo's script: Poor Man's Radio Player.

At the least there should be an acknowledgement of the origin and author in the script header comments...

Some observations at first sight:

  • You don't need 'sudo' to chmod a file in $HOME

  • The "stations" file is just a textfile, and doesn't need to be made executable

  • The "stations" file can be anywhere. You can specify it with eg...

    export pmrp_stations="$HOME/.config/stations"
  • The youtube-dl dialog should only be called if you want to d/l the music**. A selection should just play.

  • It would be nice to have a "Loading...." notification ie some feedback that something is happening

EDIT: ** I guess this is a clash with something on my system, due to "export -f load_url" as the double-click action. Very odd - I changed the name from 'bin/youtube-dl' to 'bin/utube-dl', and @misko's script doesn't run it, the same if I 'chmod -x bin/youtube-dl' hmm

Last edited by damo (2017-08-24 23:27:35)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2017-08-25 01:00:23

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

@damo Thank you for the remarks! Somehow I missed hakerdefo's original script, but checking the yad thread again I see why misko mentioned that he switched to mpv in the script. hakerdefo is now mentioned in the OP and the script header - if this is what you meant. sudo and chmod should be also fixed by now and I added a description for the path definition via "export pmrp_stations".

Hmm, I was wondering why I see the process youtube-dl sometimes. I can't see how pmrp and youtube-dl are connected.

"Loading..." would be great indeed, I meant this feature in the third post above. You can suggest a new name, I have no idea. It'd be great to have a fork, which implements something like "Loading..." (with some more details of the connection process) and maybe some time later a "record" button (and a bit different gui structure). It'd be good too to figure out how to switch stations quicker (i.e. how to make the connection process faster). If there is a new name, I'd change the post accordingly.

Offline

#8 2017-08-25 10:21:18

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

Any idea for a name? Meanwhile I changed the default folder for stations in the script as suggested. Now it loads from ~/.config/pmrp and the description was changed accordingly.

@tknomanzr Do you rip whole streams or just certain songs? I read something about track separation data, which can be read by streamripper, so I'm wondering if a feature like "clicking on a button saves the song played under its name" could be easily implemented in pmrp.

Offline

#9 2017-08-25 10:54:46

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

martix wrote:

...
Hmm, I was wondering why I see the process youtube-dl sometimes. I can't see how pmrp and youtube-dl are connected.
....

So you sometimes see the yad youtube dialog as well? The connection is that the scripts have the same author!

Unless your theme has an icon called "radio", I suggest

--window-icon="audio-x-generic"   --image="audio-x-generic"

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#10 2017-08-25 20:48:14

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

^I have a conky with running processes and without using youtube-dl - while I was playing around with pmrp - I noticed: Why do I see sometimes youtube-dl just for a moment under the running processes? Although I used yt-get during that session before. Anyhow I will pay attention to it. Btw the script above is exactly the same as in the yad thread, the only changes are now the header and the stations path.

I have audio-x-generic under Adwaita, Faenza and gnome. There is radio under Faenza, Faenza-Bunsen, Faenza-Bunsen-common and gnome (hmm, I guess I put those in gnome).

I' not familiar with yad but if nobody will care about it, I think I'll have a closer look at the script. After using it for a while I'm thinking about some polish:
- the script should recognize new categories without tweaking the script itself
- all the buttons should be on the left side panel, on the right side only a thin border and the stations
- "Loading..." with detailed connection data would be great (connection speed, data received, etc.) - there is space on the left side for it.

I'm not sure that the world needs a new radio player, but nevertheless I like this basic gui so far.

Offline

#11 2017-08-26 00:09:40

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

If you want some more UK stations...

NB This isn't the full BBC Radio list

## BBC
BBC: "BBC R1" "BBC Radio 1: Youth popular music" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p"
BBC: "BBC R2" "BBC Radio 2: Adult popular music" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p"
BBC: "BBC R3" "BBC Radio 3: Classical, Jazz, World music" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p"
BBC: "BBC R4fm" "BBC Radio 4FM: Spoken word" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p"
BBC: "BBC R4lw" "BBC Radio 4LW: Spoken word" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4lw_mf_p"
BBC: "BBC R4x" "BBC Radio 4 Extra: Comedy" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_p"
BBC: "BBC R5" "BBC Radio 5: News & Sport" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio5live_mf_p"
BBC: "BBC R5x" "BBC Radio 5x: News & Sports Extra" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio5extra_mf_p"
BBC: "BBC R6" "BBC 6 Music: Rock, funk, alternative music" "http://bbcmedia.ic.llnwd.net/stream/bbcmedia_6music_mf_p"
BBC: "BBC World" "BBC World Service" "http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-eieuk"

Last edited by damo (2017-08-26 00:42:08)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#12 2017-08-26 04:27:24

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

A bunch more streams for the "stations" file, extracted from the original PMRP script.
YMMV - I haven't tested most of these!

Oldies

## Oldies
Oldies: "A Better Oldies Station" "Oldies" "http://streaming.radionomy.com/a-better-oldies-station"
Oldies: "ANTENNE BAYERN Oldies but Goldies" "Oldies" "http://mp3channels.webradio.antenne.de:80/oldies-but-goldies"
Oldies: "E.P. Express Radio" "Oldies" "http://37.187.79.56:9246"
Oldies: "Flower Power Radio" "Oldies" "http://50.7.129.122:8433"
Oldies: "Gold Star Radio" "Oldies" "http://listen.radionomy.com/Gold-Star-Radio"
Oldies: "Golden 50s-70s Hits" "Oldies" "http://streaming.radionomy.com/golden-50-70s-hits"
Oldies: "Motown Classics" "Oldies" "http://streaming.radionomy.com/motown-classics"
Oldies: "Radio Nostalgia" "Oldies" "http://streaming.radionomy.com/Radio-Nostalgia"
Oldies: "Rewound Radio" "Oldies" "http://71.125.37.66:8000"
Oldies: "True Oldies" "Oldies" "http://streaming.streamonomy.com/trueoldies"
Oldies: "FUN45s" "Oldies" "http://198.178.123.20:8376"
Oldies: "Oldies 104" "Oldies" "http://66.85.88.2:7142"
Oldies: "Oldie Party" "Oldies" "http://212.48.110.146:8410"
Oldies: "Oldiesradio RGR" "Oldies" "http://streams.lazernet.be:2620"
Oldies: "Pure Gold 95FM" "Oldies" "http://198.178.123.20:8374"
Oldies: "Vinylgodis" "Oldies" "http://89.236.16.230:8000"

Reggae

## Reggae
Reggae: "A Better Smokin Reggae Roots Station" "Reggae" "http://streaming.radionomy.com/A-Better-Smokin-Reggae-Roots-Station"
Reggae: "A Reggae Dream" "Reggae" "http://streaming.radionomy.com/AREGGAEDREAM-Rasta24H"
Reggae: "A2R Reggae" "Reggae" "http://streaming.radionomy.com/A2R-Reggae"
Reggae: "Bob Marley & Co" "Reggae" "http://streaming.radionomy.com/A1ONEBOBMARLEYANDCO"
Reggae: "Caribbean Vibes Radio" "Reggae" "http://streaming.streamonomy.com/CaribbeanVibesRadio"
Reggae: "Jamaican Roots Radio" "Reggae" "http://listen.radionomy.com/jamaican-roots-radio"
Reggae: "Joint Radio" "Reggae" "http://72.9.152.111:9998"
Reggae: "One Hundread Locks" "Reggae" "http://streaming.radionomy.com/One-Hundread-Locks"
Reggae: "Reggae Rasta & Roots" "Reggae" "http://192.152.23.243:8470"
Reggae: "Radio Fly Foot Selecta" "Reggae" "http://listen.radionomy.com:80/radio-fly-ReggaEt-selecta"
Reggae: "Feel Jah FM" "Reggae" "http://50.7.98.106:8447"
Reggae: "Fimi Radio" "Reggae" "http://198.178.123.8:8266"
Reggae: "La Grosse Radio Reggae" "Reggae" "http://176.31.246.159:8300"
Reggae: "Reggae Connection" "Reggae" "http://listen.radionomy.com/Reggae-Connection"
Reggae: "Reggae Mix" "Reggae" "http://195.154.80.65:8142"
Reggae: "Scratch Radio" "Reggae" "http://173.192.198.244:8042"

Classical

## Classical
Classical: "1000 Classical Hits" "Classical" "http://streaming.radionomy.com/1000ClassicalHits"
Classical: "A Better Classical Station" "Classical" "http://streaming.radionomy.com/A-Better-Classical-Station"
Classical: "AMADEUS-FRIENDS Classical Radio" "Classical" "http://streaming.radionomy.com/AMADEUS-FRIENDS-ClassicalRadio"
Classical: "Ambiance Classique" "Classical" "http://listen.radionomy.com/Ambiance-classique"
Classical: "Classical Music America" "Classical" "http://streaming.radionomy.com/Classicalmusicamericacom"
Classical: "Classical Ways" "Classical" "http://listen.radionomy.com/classicalways"
Classical: "Pure Classic Ireland" "Classical" "http://206.217.201.136:8036"
Classical: "Smooth Riviera" "Classical" "http://streaming.radionomy.com/SMOOTH-RIVIERA"
Classical: "Venice Classic Radio Italia" "Classical" "http://109.123.116.202:8010/stream"
Classical: "WKSU 3 Classical" "Classical" "http://66.225.205.8:8030"
Classical: "Ancient FM" "Classical" "http://simplexstream.com:8058"
Classical: "Audiophile Baroque" "Classical" "http://213.251.157.145:8016"
Classical: "Classical WETA" "Classical" "http://38.100.128.106:8000"
Classical: "La Fenice Channel" "Classical" "http://178.32.140.82:9690"
Classical: "M2 Classic" "Classical" "http://sun.m2stream.fr:9000"
Classical: "Musik Klassic" "Classical" "http://193.34.51.12:80"

Country

## Country
Country: "1071 WNIH" "Country" "http://listen.radionomy.com/1071WNIH"
Country: "A Better Country Station" "Country" "http://streaming.radionomy.com/a-better-country-station"
Country: "A Country Dream" "Country" "http://streaming.radionomy.com/ACOUNTRYDREAM-Western24H"
Country: "A1 Country" "Country" "http://streaming.radionomy.com/A1Country-AllAmericanCountryRadio"
Country: "Abacus FM Country" "Country" "http://streaming.radionomy.com/AbacusfmCountry"
Country: "Absolutely Country Hits Radio" "Country" "http://185.33.22.15:7800"
Country: "Always Country" "Country" "http://208.85.240.89:80"
Country: "Big R Radio - Country Gold" "Country" "http://107.155.126.42:8230"
Country: "Nashville Edge" "Country" "http://streaming.radionomy.com/NashvilleEdge"
Country: "The Buffalo" "Country" "http://listen.radionomy.com/The-Buffalo"
Country: "Americana Boogie Radio" "Country" "http://us1.internet-radio.com:8182/live"
Country: "BackPorch Bluegrass" "Country" "http://listen.radionomy.com:80/BackPorchBluegrass"
Country: "Bluegrass Mix" "Country" "http://192.81.248.194:8072/stream"
Country: "Country Music 24" "Country" "http://countrymusic24.powerstream.de:9000"
Country: "Country Radio Switzerland" "Country" "http://212.48.126.146:8000"
Country: "Highway Radio" "Country" "http://listen.streamonomy.com/113fmHighwayRadio"

Blues

## Blues
Blues: "12 Bar" "Blues" "http://streaming.radionomy.com:80/12Bar"
Blues: "A Better Classic Blues Vintage Station" "Blues" "http://streaming.radionomy.com/A-Better-Classic-Blues-Vintage-Station"
Blues: "A Blues Dream" "Blues" "http://streaming.radionomy.com/ABLUESDREAM-Classic-NewBlues24H"
Blues: "Aardvark Blues FM" "Blues" "http://74.208.45.146:8639/stream"
Blues: "AcousticFM" "Blues" "http://listen.radionomy.com/Acoustic-FM"
Blues: "Best Blues I Know" "Blues" "http://streaming.radionomy.com/BestBluesIKnow"
Blues: "Blues Radio" "Blues" "http://185.33.22.13:8030"
Blues: "Cocktelera Blues" "Blues" "http://streaming.radionomy.com/Cocktelera-Blues"
Blues: "Con Alma de Blues" "Blues" "http://listen.radionomy.com/Con-Alma-de-Blues"
Blues: "Funky Blues" "Blues" "http://streaming.radionomy.com/FunkyBlues"
Blues: "Big Blue Swing" "Blues" "http://209.236.126.18:8002"
Blues: "Blues Radio UK" "Blues" "http://206.217.213.16:8430/"
Blues: "Crossroads Blues Radio" "Blues" "http://174.127.114.128:8134/stream"
Blues: "Houston Blues Radio" "Blues" "http://74.208.170.137:8640/stream"
Blues: "K-BLUES" "Blues" "http://listen.radionomy.com:80/K-BLUES"
Blues: "Radio Mississipi Blues" "Blues" "http://listen.radionomy.com:80/RadioMississipi-Blues"

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#13 2017-08-26 07:12:38

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

^Fantastic! Those Blues stations are in the OP. I checked them now one by one: Only "Blues Radio UK" and "Big Blue Swing" seem to work. For the radionomy stations I received: Not available in your country.

I tried to pay attention to the youtube-dl issue. First I listened to some di.fm and soma.fm stations (after reboot, without downloading anything from youtube) and did not notice anything. However: While checking out the Blues stations there was it again: youtube-dl! It appears under the processes. I'd like to find out why.

Edit: Two BBC channels (R1 and R5x do not work here). Here are a few more channels to try (just saw Jazzradio in a post by forum member Snap):

Urban: "Jazzradio" "Mellow Smooth Jazz" "http://diforfree.org/pls/jazzradio_mellowsmoothjazz_hi.m3u"
Urban: "Jazzradio" "Piano Jazz" "http://diforfree.org/pls/jazzradio_pianojazz_hi.m3u"
Urban: "Jazzradio" "Sinatra Style" "http://diforfree.org/pls/jazzradio_sinatrastyle_hi.m3u"
Urban: "Jazzradio" "Smooth Jazz" "http://diforfree.org/pls/jazzradio_smoothjazz_hi.m3u"
Urban: "Jazzradio" "Smooth Jazz 24/7" "http://diforfree.org/pls/jazzradio_smoothjazz247_hi.m3u"
Urban: "Jazzradio" "Smooth Uptempo" "http://diforfree.org/pls/jazzradio_smoothuptempo_hi.m3u"

Edit II:
Does youtube-dl maybe appear because of mpv? I just read: "The media player 'mpv' has good integration with youtube-dl. When you supply it an URL, it will automatically try to stream it with youtube-dl. When using the --no-video option, mpv automatically instructs youtube-dl to choose the audio only format. You can try it like this:  mpv link_to_youtube_vid --no-video"

And I found here in the forum:

mpv --no-ytdl --really-quiet

Maybe youtube-dl would not appear anymore, if in the pmrp script we would use "--no-ytdl".

Btw what about calling it "No Bells and Whistles Radio Player"?  cool

Edit III:
I guess the radio icon looks really good for this player, so I added to step 5 the copy command (icon cp to that hicolor folder). If I'm not mistaken, it might solve any icon issue, regardless what theme is set.

Last edited by martix (2017-08-26 09:06:17)

Offline

#14 2017-08-26 13:54:33

damo
....moderator....
Registered: 2015-08-20
Posts: 6,572

Re: Poor Man's Radio Player - simple yet brilliant radio player

martix wrote:

...
Maybe youtube-dl would not appear anymore, if in the pmrp script we would use "--no-ytdl".....

Great catch - that works!

I call mine "Radio YAD" smile

There are other BBC streams, for example

http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_one.m3u8

Last edited by damo (2017-08-26 14:20:23)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#15 2017-08-27 06:23:42

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,851
Website

Re: Poor Man's Radio Player - simple yet brilliant radio player

I like Radiotray, but there's always room for another radio player. smile
Here's my bookmarks.xml:

<bookmarks>
    
<group name="root">
<group name="News">
<bookmark name="BBC World Service" url="http://wsdownload.bbc.co.uk/worldservice/meta/live/shoutcast/mp3/eieuk.pls"/>
<bookmark name="ABC Australia" url="http://shoutmedia.abc.net.au:10420"/>
<bookmark name="KNX news (LA)" url="http://kqed-ice.streamguys.org:80/kqedradio-on-e1"/>
<bookmark name="npr newscast" url="http://download.npr.org/anon.npr-mp3/npr/news/newscast.mp3?dl=1"/>
<bookmark name="KFPA (Berkeley, California)" url="http://streams1.kpfa.org:8000/kpfa_64"/>
<bookmark name="NPR News" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=2023042"/>
<bookmark name="World Service 2" url="http://wsdownload.bbc.co.uk/worldservice/meta/live/shoutcast/mp3/eieuk.pls"/>
</group>
<group name="BBC">
<bookmark name="World Service" url="http://wsdownload.bbc.co.uk/worldservice/meta/live/shoutcast/mp3/eieuk.pls"/>
<bookmark name="BBC Radio 3" url="http://www.listenlive.eu/bbcradio3.m3u"/>
<bookmark name="BBC Radio 6" url="http://www.listenlive.eu/bbc6music.m3u"/>
<bookmark name="BBC Radio 4" url="http://www.listenlive.eu/bbcradio4.m3u"/>
<bookmark name="BBC Asian Network" url="http://www.listenlive.eu/bbcasian.m3u"/>
<bookmark name="Radio Oxford" url="http://wmlive-lracl.bbc.co.uk/wms/england/lroxford"/>
</group>
<group name="World">
<bookmark name="WorldwideFM" url="http://worldwidefm.out.airtime.pro:8000/worldwidefm_a"/>
<bookmark name="Wereldmuziek" url="http://streams.greenhost.nl:8080/wereldmuziek.m3u"/>
<bookmark name="Wereld FM Amsterdam" url="mms://195.169.148.57/wereldfm"/>
<bookmark name="RadioTunes World" url="http://pub8.radiotunes.com/radiotunes_world"/>
<bookmark name="Huellas Global FM" url="http://listen.radionomy.com/huellasglobalfm"/>
</group>
<group name="African">
<bookmark name="Wassoulou" url="http://listen.radionomy.com/radio-wassoulou-internationale.m3u"/>
<bookmark name="Ghana Waves Radio" url="http://sc1.audiorealm.com:11640"/>
<bookmark name="HIGHLIFE RADIO - GHANA" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1677716"/>
<bookmark name="ZemaRadio (Ethiopian)" url="http://listen.radionomy.com/zema-radio.m3u"/>
<bookmark name="Angola FM Aberta" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=111905"/>
<bookmark name="Maputo Radio" url="mms://rdp.oninet.pt/rdpafrica"/>
<bookmark name="Africa Time For Peace" url="http://listen.radionomy.com/africa-time-for-peace.m3u"/>
<bookmark name="Mais Kizomba" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=639135"/>
<bookmark name="Afriki Djigui Theatri" url="http://listen.radionomy.com/afriki-djigui-theatri"/>
<bookmark name="Bongo Radio - Taarab and Mduara Channel" url="http://www.bongoradio.com/tarab/listen128k.m3u"/>
<bookmark name="Bongo Radio Zilipendwa" url="http://www.bongoradio.com/zilipendwa/listen128k.m3u"/>
<bookmark name="Bongo African Grooves" url="http://www.bongoradio.com/african-grooves/listen128k.pls"/>
<bookmark name="Bongo East African" url="http://www.bongoradio.com/east-african/listen128k.pls"/>
</group>
<group name="Middle East">
<bookmark name="Balkan MIX Radio" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1665102"/>
<bookmark name="Yerevan Nights" url="http://www.yerevannights.com/Radio.pls"/>
<bookmark name="MUSIK.ORIENTAL" url="http://oriental-high.rautemusik.fm"/>
<bookmark name="shamfm" url="http://184.107.180.50:8200/"/>
<bookmark name="Prolocation Iranian Radio" url="http://213.73.255.244:10700/"/>
</group>
<group name="Indian &amp; Bhangra">
<bookmark name="1FM - Bombay Beats" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1161542"/>
<bookmark name="Shyam Radio" url="mms://st.malargal.com/shyamradio"/>
<bookmark name="Geetham Radio (Tamil)" url="http://www.geethamradio.com:8020/hifi.mp3"/>
<bookmark name="ABC Tamil" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=235501"/>
<bookmark name="Ilayamaan radio" url="http://listen.radionomy.com/ilayamaanradio.m3u"/>
<bookmark name="Flower Raj Radio" url="http://uk2.internet-radio.com:30580/"/>
<bookmark name="your Carnatic Music Companion" url="http://s5.viastreaming.net:7220/"/>
<bookmark name="muyanewtamilhits" url="http://listen.radionomy.com/muyanewtamilhits.m3u"/>
<bookmark name="IBC Tamil" url="http://38.96.148.226:6176/"/>
<bookmark name="Sunaada" url="http://188.138.16.143:8140/"/>
<bookmark name="Asian Star 101.6FM" url="http://icecast.commedia.org.uk:8000/asianstar.mp3.m3u"/>
<bookmark name="Apna eRadio CLassics Channel" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=27420"/>
<bookmark name="Radio Caprice Indian Folk" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=9463807"/>
</group>
<group name="Thai">
<bookmark name="Thai-Radio.net" url="http://listen.thai-radio.net/trhq"/>
<bookmark name="Rimkhong Radio" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=74327"/>
<bookmark name="Isaan Smile" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=350036"/>
<bookmark name="Thaiseri Radio Station" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1335"/>
<bookmark name="Isan Radio 1 dokjaan" url="http://radios.in.th:9036"/>
<bookmark name="Isan Radio 2 Saonin" url="http://radio2.serverradio.net:8444"/>
<bookmark name="Isan Radio 3" url="http://5.39.85.20:8001/live"/>
<bookmark name="Isan Radio 4 Sabaideeradio (64k)" url="http://103.22.182.192:8012"/>
<bookmark name="Isan Radio 5" url="http://radio.dwebsalehost.com:9064"/>
<bookmark name="DJ  Auto (64k)" url="http://radio.dwebsalehost.com:8066/"/>
<bookmark name="Radio Thai Labour" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=2160"/>
<bookmark name="Sawang Daendin Radio Thailand" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=326579"/>
<bookmark name="FM ONE (Thai)" url="http://rcp.plathong.net:7026/"/>
<bookmark name="PongPan Radio online" url="http://radio.portradiothai.com:6010/"/>
</group>
<group name="Indonesian">
<bookmark name="Dangdut Radio Jakarta" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=265540"/>
<bookmark name="Negeri Dangdut" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=45797"/>
<bookmark name="www.radiobarayasunda.net" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=732032"/>
</group>
<group name="Chill">
<bookmark name="Soma: Suburbs of Goa" url="http://somafm.com/suburbsofgoa.pls"/>
<bookmark name="OEM Radio" url="http://46.23.68.170:8078/stream/1/"/>
<bookmark name="Mantra (radiolla)" url="http://air.radiolla.com/mantra192k"/>
<bookmark name="chill-out-radio-gaia" url="http://listen.radionomy.com/chill-out-radio-gaia"/>
</group>
<bookmark name="Resonance FM" url="http://54.77.136.103:8000/resonance"/>
<bookmark name="WBUR" url="http://audio.wbur.org/stream/live_mp3.m3u"/>
<bookmark name="WFMU" url="http://wfmu.org/wfmu.pls"/>
<bookmark name="RTR FM (Australia)" url="http://119.252.89.92:8000/rtrfm_64.mp3"/>
<bookmark name="Dublab Dubstream" url="http://dublab.streamguys.com:80/high.mp3"/>
<bookmark name="Dublab Dreamstream" url="http://dublab.streamguys.com/themestream_fallback.mp3"/>
<bookmark name="Dublab.jp" url="http://75.102.60.67/jp.mp3"/>
<bookmark name="Dublab.de" url="http://204.93.252.107/de.mp3"/>
<bookmark name="Dublab.es" url="http://dublab4.streamguys.us/es.mp3"/>
<bookmark name="Fip (eclectic French)" url="http://audio.scdn.arkena.com/11016/fip-midfi128.mp3"/>
<bookmark name="Fresh Radio" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1676463"/>
<bookmark name="Hober Radio" url="http://199.180.72.2:9142/"/>
<bookmark name="KAOS radio" url="http://www.kaosradio.org/streams/kaos128.pls"/>
<bookmark name="MID-FM" url="http://www.simulradio.jp/asx/mid-fm761.asx"/>
<bookmark name="Blues (jazzradio)" url="http://pub1.jazzradio.com:80/jr_blues?0b8c8413445830acd1b22421"/>
<bookmark name="Blues Radio UK" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=1654782"/>
<bookmark name="BLUES RADIO (1.FM TM)" url="http://205.164.62.21:8030/"/>
<bookmark name="sounds of brazil" url="http://www.live365.com/play/soundsofbrazil"/>
<bookmark name="Sky Roots Reggae" url="http://pub1.sky.fm/sky_rootsreggae"/>
<bookmark name="Sky Ska" url="http://pub1.sky.fm/sky_ska"/>
<bookmark name="Gypsy Jazz" url="http://pub1.jazzradio.com:80/jr_gypsyjazz?0b8c8413445830acd1b22421"/>
<bookmark name="Jazz Radio Manouche" url="http://jazz-wr02.ice.infomaniak.ch/jazz-wr02-128.mp3"/>
<bookmark name="Jazz Radio New Orleans" url="http://jazz-wr03.ice.infomaniak.ch/jazz-wr03-128.mp3"/>
<bookmark name="Goon Show Radio" url="http://goons.fabcat.org/64.pls"/>
<bookmark name="LocalHost" url="http://localhost:8000"/>
<bookmark name="Radio Samleng Khemara - Khmer (Cambodia) Music and News" url="http://yp.shoutcast.com/sbin/tunein-station.pls?id=150047"/>
</group>
</bookmarks>

A lot of these still work, but radio streaming URLs die all the time.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#16 2017-08-27 07:09:18

ohnonot
...again
Registered: 2015-09-29
Posts: 5,383
Website

Re: Poor Man's Radio Player - simple yet brilliant radio player

it works!
nice list of stations so far.
I'd love to see all stations defaulting to high-quality OGG Vorbis or AAC streams, instead of MP3.
I might do that for soma.fm evtl...

thoughts:
- the case/esac inside function run_stations is kinda pointless.
- when minimizing to tray, the tooltip could show song info
- maybe song info could even be requested from a running instance

all in all i'm amazed to see what can be done with yad.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#17 2017-09-10 11:00:01

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

@ohnonot Is this what you mean - 128 aac? I'm not sure if it's the best quality stream for soma. It takes around 20-22 kb/s bandwith. 32 aac uses only around 6 kb/s.

soma.fm: "Black Rock FM" "For the annual Burning Man festival" "http://ice1.somafm.com/brfm-128-aac"
soma.fm: "Drone Zone" "Atmospheric textures with minimal beats" "http://ice1.somafm.com/dronezone-128-aac"
soma.fm: "Groove Salad" "Ambient/downtempo beats and grooves" "http://ice1.somafm.com/groovesalad-128-aac"
soma.fm: "SF in SF Podcast" "Sci-Fi in San Francisco-author readings" "http://ice1.somafm.com/sf1033-128-aac"
soma.fm: "DEF CON Radio" "The DEF CON Year-Round Channel" "http://ice1.somafm.com/defcon-128-aac"
soma.fm: "Fluid" "Instrumental hiphop, future soul and liquid trap" "http://ice1.somafm.com/fluid-128-aac"
soma.fm: "Lush" "Sensuous vocals with an electronic influence" "http://ice1.somafm.com/lush-128-aac"
soma.fm: "Illionois Street Lounge" "Lounge" "http://ice1.somafm.com/illstreet-128-aac"
soma.fm: "Left Coast 70s" "Mellow album rock from the Seventies" "http://ice1.somafm.com/seventies-128-aac"
soma.fm: "Underground 80s" "Early 80s UK Synthpop and New Wave" "http://ice1.somafm.com/u80s-128-aac"
soma.fm: "Boot Liquor" "Americana Roots music" "http://ice1.somafm.com/bootliquor-128-aac"
soma.fm: "Digitalis" "Digitally affected analog rock" "http://ice1.somafm.com/digitalis-128-aac"
soma.fm: "Deep Space One" "Deep ambient electronic, experimental and space music" "http://ice1.somafm.com/deepspaceone-128-aac"
soma.fm: "Space Station Soma" "Spaced-out ambient and mid-tempo electronica" "http://ice1.somafm.com/spacestation-128-aac"
soma.fm: "Sonic Universe" "Jazz with eclectic, avant-garde influence" "http://ice1.somafm.com/sonicuniverse-128-aac"
soma.fm: "Suburbs of Goa" "Desi-influenced Asian world beats" "http://ice1.somafm.com/suburbsofgoa-128-aac"
soma.fm: "Beat Blender" "Deep-house and downtempo chill" "http://ice1.somafm.com/beatblender-128-aac"
soma.fm: "The Trip" "Progressive house / trance" "http://ice1.somafm.com/thetrip-128-aac"
soma.fm: "cliqhop idm" "Intelligent Dance Music" "http://ice1.somafm.com/cliqhop-128-aac"
soma.fm: "Dub Step Beyond" "Dubstep, Dub and Deep Bass" "http://ice1.somafm.com/dubstep-128-aac"
soma.fm: "PopTron" "Electropop and indie dance rock with sparkle and pop" "http://ice1.somafm.com/poptron-128-aac"
soma.fm: "Indie Pop Rocks!" "New and classic indie pop tracks" "http://ice1.somafm.com/indiepop-128-aac"
soma.fm: "BAGeL Radio" "Alternative rock radio" "http://ice1.somafm.com/bagel-128-aac"
soma.fm: "Seven Inch Soul" "Vintage soul tracks from 45 RPM vinyl" "http://ice1.somafm.com/7soul-128-aac"
soma.fm: "ThistleRadio" "Music from Celtic roots and branches" "http://ice1.somafm.com/thistle-128-aac"
soma.fm: "Folk Forward" "Indie Folk, Alt-folk and folk classics" "http://ice1.somafm.com/folkfwd-128-aac"
soma.fm: "Covers" "Just covers" "http://ice1.somafm.com/covers-128-aac"
soma.fm: "Secret Agent" "Soundtrack for stylish, mysterious life" "http://ice1.somafm.com/secretagent-128-aac"
soma.fm: "Metal Detector" "Prog to sludge, thrash to post, stoner to crossover" "http://ice1.somafm.com/metal-128-aac"
soma.fm: "The Silent Channel" "Light and dark ambient electronic music" "http://ice1.somafm.com/silent-128-aac"
soma.fm: "Mission Control" "Celebrating NASA and Space Explorers" "http://ice1.somafm.com/missioncontrol-128-aac"
soma.fm: "SF 10-33" "Ambient music mixed with San Francisco traffic" "http://ice1.somafm.com/sf1033-128-aac"
soma.fm: "Doomed" "Dark industrial / ambient music" "http://ice1.somafm.com/doomed-128-aac"
soma.fm: "Earwaves" "Electronic and experimental music" "http://ice1.somafm.com/earwaves-128-aac"

What is the best channel here? So far I liked the defcon channel and The Trip.

There is a bug in the recent player code: When you open the player and click on a station, there will be the title on the left side. However closing the player to the tray and opening it again will show how it's supposed to be: Station, Title, Bitrate. Btw those are great suggestions and it seems indeed that case/esac is not required.

I think it could be called Bells Radio Player as No Bells and Whistles Radio Player is just too long for a simple player. I'm going to change the thread accordingly but those stations have to be cleaned out first.

Offline

#18 2017-09-10 19:53:11

ector1935
Member
Registered: 2017-05-03
Posts: 236

Re: Poor Man's Radio Player - simple yet brilliant radio player

thank for the script!
good!

Offline

#19 2017-09-11 17:46:14

ohnonot
...again
Registered: 2015-09-29
Posts: 5,383
Website

Re: Poor Man's Radio Player - simple yet brilliant radio player

martix wrote:

@ohnonot Is this what you mean - 128 aac?

that's the best quality somafm offers for most stations.
generally speaking, for the same bandwidth (that's kilobit per second btw, and linux measures kilobytes), both ogg and aac are way better than mp3.

What is the best channel here? So far I liked the defcon channel and The Trip.

bagel, drones, space for me.

I think it could be called Bells Radio Player as No Bells and Whistles Radio Player is just too long for a simple player.

shouldn't that be "No Bells Radio Player" then? 'nbrp'?


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#20 2017-09-12 00:57:36

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

^It sounds good. Actually it sounds like Nobel's Radio Player. I doubt it'll ever win a prize though.

Offline

#21 2017-09-18 01:22:20

misko_2083
Member
Registered: 2016-05-24
Posts: 434

Re: Poor Man's Radio Player - simple yet brilliant radio player

^ big_smile Why not? They lowered the standards. Even Obama has one!
Speaking of Nobel. "Dynamite Radio Player"? Nooo.
Maybe "Boomstick Radio Player"? wink


Што ни оштровиди ум сагледати не може - љубав превазилази.

Offline

#22 2017-09-18 19:11:22

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

Welcome to the thread, misko! Good to see ya! U see: I was not just blabbering about having a thread for the player, now here it is! Dynamite Radio Player sounds good, but somehow I got fond of Nobel after ohnonot suggested "No bells". So “no bells” -> “Nobel’s”, but it’s also about the fear that it’ll explode like dynamite if we start to tweak that yad script.
NobelsRadioPlayer.png
How does it look? It’d be an idea to make an icon with an A. Nobel-like face with a headphone (nowdays you’d call that a hipster) or with a pocket radio.

I've been tweaking the script here and there, I'll try to update this thread soon. That option mentioned above "--no-ytdl" seems to make connections faster and I guess using also "--no-terminal" would be appropriate in this case. Somehow on the status panel after loading channels and starting a station there is only the title (the rest appears after closing to tray and opening again) and the station name won't get updated after a change. The yad script is great, thank you again for creating it! It's fun to learn about yad and trying to tweak it.

Offline

#23 2017-09-18 19:16:22

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

I almost forgot: I could not find working stream-urls for Dublab Dubstream, Dublab Dreamstream, Dublab.jp, Dublab.de and Dublab.es. Anyone maybe listening to these stations via url-stream?

Offline

#24 2017-09-19 17:36:06

ohnonot
...again
Registered: 2015-09-29
Posts: 5,383
Website

Re: Poor Man's Radio Player - simple yet brilliant radio player

there you go:

http://dublab.com/streams/dubstream
http://dublab.streamguys.com/themestream.mp3
http://dublab.streamguys.com/themestream_fallback.mp3
http://dublabde.out.airtime.pro:8000/dublabde_a
http://dublabde.out.airtime.pro:8000/dublabde_b
http://samcloud.spacial.com/api/listen?sid=75616&rid=133702&f=aac,any&br=64000,any&m=sc

that's all i was able to retrieve from their javascript heavy sites; themestream seems to be dead, but the others still work.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#25 2017-09-19 20:52:55

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Poor Man's Radio Player - simple yet brilliant radio player

^Great, thank you @ohnonot! Indeed, those two themestreams did not work for me either and I could not start dublab.jp - not even through that website (there was a shoutcast stream and it did not work). So we have dublab main, dublab.es and two (same) streams for dublab.de. If anyone wanting to add them to the stations file to the Urban category, here is the code for copy&paste:

Urban: "Dublab Main" "Future. Roots. Radio" "http://dublab.com/streams/dubstream"
Urban: "Dublab.es" "Dublab Spain" "http://samcloud.spacial.com/api/listen?sid=75616&rid=133702&f=aac,any&br=64000,any&m=sc"
Urban: "Dublab.de" "Dublab Germany Stream A" "http://dublabde.out.airtime.pro:8000/dublabde_a"
Urban: "Dublab.de" "Dublab Germany Stream B" "http://dublabde.out.airtime.pro:8000/dublabde_b"

Offline

Board footer

Powered by FluxBB