On Fri, 18 Mar 2016 20:21:11 +0000 steve-ALUG@hst.me.uk wrote:
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?
No. I wrote it.
It's slightly more comprehensive than the bit above suggests as it copes with both radio and tv thus :-
VERSION=1.5 set -e # set -x
if [ -z "$1" ]; then echo Usage: $0 "You must specify radio OR tv as a parameter" exit 1 fi
case $1 in radio) get_iplayer --type=radio --refresh for id in $(get_iplayer --type=radio "<file x etc>" | grep -o '^[0-9]*:' | sed 's/://'); do get_iplayer --type=radio --get $id --thumbnail --mp3 done ;; tv) get_iplayer --refresh for id in $(get_iplayer "<file x etc>" | grep -o '^[0-9]*:' | sed 's/://'); do get_iplayer --get $id --thumbnail done ;; esac
Each week I will wade through the Radio Times and find any programmes I might want to watch or listen to and which are not captured already on either of my Humax boxes and add them to the list. I run the script every day with either tv or radio as a parameter.
Personally, I go to the iplayer webpage, and I find the program that I want to listen to or watch.
I only do that if I can't find the programme I want by any other means, usually the Radio Times - the printed version, not the web site.
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
I've been looking at that one and did so before I wrote in but I can't find a way to do what I want - yet!
and a hugely comprehensive guide here: https://squarepenguin.co.uk/guides/
That was offline for a little while. I'm glad to see that it's back.
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.
It's certainly given me some more things to think about ;-)