Listen Again

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
potong
Posts: 88
Joined: Fri 06 Mar 2009, 04:01

Listen Again

#1 Post by potong »

Do you have an urge to listen to The Archers?
Perhaps you want to catch up on your local regional news?
Dr Who, The Goons or Dads Army episodes?
Listen to masses of great radio programmes?

This is a little screen scraping script that I've been using for a while.

You will need to have installed mplayer and the links text web browser.

Don't worry you can get them from the Puppy Package Manager,

Download and gunzip the following script and welcome to the world of the BBC radio Listen Again service.
Attachments
listen_again.gz
Added mp3/ogg file types for recordings
(4.01 KiB) Downloaded 660 times

potong
Posts: 88
Joined: Fri 06 Mar 2009, 04:01

#2 Post by potong »

Added mp3/ogg filetypes for recordings.

Now you can save programmes to your mp3 player i.e. most phones!

Potong

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#3 Post by jakfish »

I tried this out. Works nicely on Puppeee 4.3 Beta. Not my cup of tea, the actual list of programs, but I'm amazed at the set-up.

Many thanks for your hard work,
Jake

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#4 Post by jakfish »

I don't know how interested you are in playing the gui, but it's a little big for a netbook screen (8.9"). It takes a lot of window moving to access Tune and other keys.

FWIW,
Jake

User avatar
piteapup
Posts: 34
Joined: Thu 13 Aug 2009, 09:22
Location: pitea-sweden

BBC

#5 Post by piteapup »

if you want have a look at this site-links to most BBC radio services.
http://www.beebotron.org/index.php?reload

potong
Posts: 88
Joined: Fri 06 Mar 2009, 04:01

#6 Post by potong »

jakfish:

Thanks for the kind words.

As to the gui: I don't have a netbook so I'm guessing a little on this.
However, here are a few ways I've found to access wayward buttons on guis (these all work in JWM).
  • 1) Left click and drag on the window title bar.
    2) Hold down Alt and left click and drag anywhere in the window.
    3) Middle click (click on the scrollwheel) and drag on the miniature window in the desktop miniatures right of the menu button.
    4) Warning Technical Answer: edit the script and hash (#) out any lines that begin "<height>" or "<width>" like so:

    Code: Select all

    gui=$(cat << EOV|sed 's/#.*//'
    <window title="Listen Again" window_position="1">
     <notebook labels="Play|Replay|Config">
      <vbox>
       <hbox>
        <frame Station/Genre>
         <vbox>
          <tree rules_hint="true" exported_column="1" headers_visible="false">
           <label>"Stations & Genres   |URL|Sequence"</label>
           #<height>500</height>
           #<width>200</width>
           <variable>STATION</variable>
           <input icon_column="0">list_stations</input>
           <action signal="button-press-event">enable:OK</action>
          </tree>
          <button label="Tune To">
           <variable>OK</variable>
           <visible>disabled</visible>
           <action signal="button-press-event">refresh:PROGRAMME</action>
           <action signal="button-press-event">enable:PROGRAMME</action>
           <action signal="button-press-event">disable:STATION</action>
           <action signal="button-press-event">disable:OK</action>
          </button>
         </vbox>
        </frame>
        <vbox>
         <frame Programmes>
          <tree stock="gtk-media-play" rules_hint="true" exported_column="1" headers_visible="false">
           <label>"Name|URL|Sequence"</label>
           #<height>500</height>
           #<width>600</width>
           <visible>disabled</visible>
           <variable>PROGRAMME</variable>
    
If you try the last option (which should drastically reduce the size of the gui) and find it still usable, please let me know and I'll amend the script and add this into the config.

piteapup:

Yes, I use the excellent beebotron.org site for my screen scraping.

I've gone with using the BBC international offerings, so as to cater for the majority of listeners, however UK citizens can use their own links and/or there are also links for live radio.

Let me know if these would be of interest.

Potong

Post Reply