On 18/03/16 18:57, Chris Walker wrote:
On Fri, 18 Mar 2016 17:05:25 +0000 James Bensley jwbensley@gmail.com wrote:
I always use get_iplayer with the URL to the video, so this works for me...
get_iplayer-2.91 --type radio http://www.bbc.co.uk/programmes/b04p5vl1
That would do it but it means manually checking the URL whereas I run a script like this :- for id in $(get_iplayer --type=radio "David Rodigan" "Hal" | grep -o '^[0-9]*:' | sed 's/://'); do get_iplayer --type=radio --get $id --thumbnail --mp3 done
Which means that I need to grab only the file(s) I want and nothing extra.
I'm wondering, did you have to google to get that script, because, if you did, isn't that as simple as googling to get the url of the program?
Personally, I go to the iplayer webpage, and I find the program that I want to listen to or watch. I then use get_iplayer --get --type tv|radio "http:\THE_URL..." or get_iplayer --get --type tv|radio --pid THE_PID
Obviously I put tv or radio not tv|radio. The pid is the last bit of the url after the ? If specifying the URL, it's best to put it in "" just in case any special characters do funny things to Bash's interpretation of the command line.
There are several web pages that list how to use it. I cant find my usual "go to" page however, there's help straight from the horses mouth here: https://github.com/get-iplayer/get_iplayer/wiki
and a hugely comprehensive guide here: https://squarepenguin.co.uk/guides/
particularly pages: https://squarepenguin.co.uk/wiki/documentation/ and https://squarepenguin.co.uk/guides/tv-download-guide/
and of course there's the man page. You can limit your search by specifying the channel for instance.
Hope that helps.
Steve