My bat_iplayer script now has a problem.

Vangelis forthnet northmedia1 at the.forthnet.gr
Thu Jun 4 17:43:13 PDT 2015


On Thu Jun 4 09:47:34 BST 2015, Jon Davies wrote:

> this should work:
>
> TITLE=$(wget --quiet -O - http://www.bbc.co.uk/programmes/$PID.rdf |
> grep "<dc:title>" | sed -re "s/ *<dc:title>(.*?)<\/dc:title>/\1/")

 Hi, Jon!

 No doubt batguano999 would be thankful for your code...
I do not have a Linux box to check it, but since I was the one
who proposed alternate working URLs (in lieu of the blocked
XML playlist), I did some "curiosity" tests for (as an example)
pid=b05wxxjv (AOD) and found the fullest title string to be
contained within the JSON playlist file:

http://www.bbc.co.uk/programmes/b05wxxjv/playlist.json =>
"title":"The Official Chart Update, 03\/06\/2015" (twice)

http://www.bbc.co.uk/programmes/b05wxxjv.xml =>
<display_title><title>The Official Chart 
Update</title><subtitle>03/06/2015</subtitle></display_title>

http://www.bbc.co.uk/programmes/b05wxxjv.rdf =>
<dc:title>03/06/2015</dc:title>

Is it feasible for you to come up with code
that exploits the JSON playlist URL?

Most kind regards,
Vangelis. 




More information about the get_iplayer mailing list