-Original Message-
From: get_iplayer-boun...@lists.infradead.org
[mailto:get_iplayer-boun...@lists.infradead.org] On Behalf Of
Bill Lancaster
Sent: 14 February 2011 10:43
To: get_iplayer@lists.infradead.org
Subject: Programme info from PID
Nearly there!
get_iplayer --type=radio --pid=b00yhv30 --test
produces:-
INFO Trying to stream pid using type radio
INFO: pid found in cache
Matches:
10745:Desert Island Discs - Celia Imrie, BBC Radio 4,
Factual,Highlights,Life Stories,Music,Popular,Radio
INFO: 1 Matching Programmes
ERROR: Failed to get iphone URL from iplayer site
INFO: Checking existence of default version
INFO: flashaacstd1,flashaudio1,rtspaudio1,flashaaclow1,wma1
modes will be tried for version default
INFO: Trying flashaacstd1 mode to record radio: Desert Island
Discs - Celia Imrie
INFO: File name prefix =
Desert_Island_Discs_-_Celia_Imrie_b00yhv30_default
INFO: skipping this programme
No mention of date time of broadcast though.
There is a way to retrieve full programme information, you're going about it
the wrong way though. The --info switch is what you need.
http://www.smallsoftware.co.uk/bbc-iplayer/using-get_iplayer/
So for example, using
get_iplayer --fields=name,episode zingzillas --info
Will show *all* metadata (lots of it!) for all available programmes matching
zingzillas in either the programme name or episode. What you're after are
the two metadata fields:
expiry: 2011-02-21T08:59:00Z
expiryrel: in 6 days 21 hours
(Zulu time, cool)
So you could output the results using something like
get_iplayer --info --fields=name,episode,pid b00rzt4f getip-metadata.txt
To output to the thusly-named text file in the get_iplayer working
directory. (NB I've just swapped out the zingzillas for a specific
ZingZilla episode's PID, and rearranged the order in the commandline. You
can just remove the getip-metadata.txt and then copy/paste the script
changing the PID if you want to do quick searches for full metadata by pid
OR programme name OR episode name :-)
You could write a quick script that would parse the output and just show the
specific metadata fields but that's beyond the scope of this reply. Sorry if
any of this came over as condescending or stuff you already knew, hard to
gauge your level of experience with command prompt (or even which OS you're
using, I'm assuming XP or Vista as you seemed to disregard John Dargie's
Linux-centric reply)
HTH
Chris
PS - the trick with this list is to use reply-all, otherwise you respond to
just the original sender. Just the way the headers are set up on this
Mailman.
___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer