Paul, I have to say that I am really pleased with this version of the programmes API, in particular the way they are done though the normal channel URIs.
Another note about the output: it's in "broadcast days" of 4am-4am. My remixing of the output seems to work just fine! http://www.google.co.uk/ig?hl=en&skin=http://www.ukfree.tv/igoogle/igoogle-theme-BBC-schedule.xml http://www.ukfree.tv/igoogle/ 2008/5/21 Paul Clifford <[EMAIL PROTECTED]>: > Behind the scenes, the initial part of a schedule URL path is matched > against > /:service/programmes/schedules/:outlet > > The :service parameter is the usual BBC top-level directory name, eg > "radio1", "bbctwo", "6music". The :outlet parameter is only required > if the service in question has different schedules depending on how or > where you receive it, eg Radio 4 FM vs Radio 4 LW, and BBC Two England > vs BBC Two Scotland. > > If you omit the :outlet parameter and it turns out to be needed, the > HTML views will give you a list of outlets to choose from: > http://www.bbc.co.uk/bbcone/programmes/schedules > http://www.bbc.co.uk/bbctwo/programmes/schedules > http://www.bbc.co.uk/radio4/programmes/schedules > > However, as you've noticed the XML and JSON views don't handle this > properly, they just render a 500 error. It's on the list of things to > fix! > > Of the currently available services, only BBC One, BBC Two, and Radio > 4 require an outlet. For BBC One and BBC Two, the "london" and > "england" outlets respectively are the only ones guaranteed to have > full schedules at the moment; the others occasionally have gaps or > missing days, but work is underway to address that. The "fm" and "lw" > Radio 4 outlets should both be fine. > > On Tue, May 20, 2008 at 11:35 AM, Iain Emsley <[EMAIL PROTECTED]> > wrote: > > Ta. Intriguingly the other URL works for radios 1,2,3 and 6music. > > > > ----- Original Message ---- > > From: Brian Butterworth <[EMAIL PROTECTED]> > > To: [email protected] > > Sent: Tuesday, 20 May, 2008 10:25:43 AM > > Subject: Re: [backstage-developer] Accessing > > http://www.bbc.co.uk/programmes/a-z from PHP > > > > it is > > > > http://www.bbc.co.uk/radio4/programmes/schedules/fm/2008/05/20 > > > > or > > > > http://www.bbc.co.uk/radio4/programmes/schedules/lw/2008/05/20 > > > > 2008/5/20 Iain Emsley <[EMAIL PROTECTED]>: > >> > >> Using this URL > >> (http://www.bbc.co.uk/radio4/programmes/schedules/2008/04/28.xml), I've > got > >> (same with the .json instead of .xml): > >> > >> Unable to find template schedules/show_outlets at > Controllers/Schedules.pm > >> line 326 > >> > >> Iain > >> > >> ----- Original Message ---- > >> From: Paul Clifford <[EMAIL PROTECTED]> > >> To: [email protected] > >> Sent: Monday, 19 May, 2008 8:54:57 PM > >> Subject: Re: [backstage-developer] Accessing > >> http://www.bbc.co.uk/programmes/a-z from PHP > >> > >> We updated the /programmes site today and there are some new views > >> that might be of use... > >> > >> See all programmes on a service with broadcasts +/- 7 days from now at > >> /:service/programmes/a-z > >> http://www.bbc.co.uk/bbcfour/programmes/a-z > >> http://www.bbc.co.uk/6music/programmes/a-z > >> > >> Add /all to remove the 7 day restriction, or /player to show just the > >> programmes with episodes available in iPlayer: > >> http://www.bbc.co.uk/radio1/programmes/a-z/all > >> http://www.bbc.co.uk/radio3/programmes/a-z/player > >> > >> Search within a service by adding "/by/:search" after "/a-z": > >> http://www.bbc.co.uk/radio4/programmes/a-z/by/e > >> http://www.bbc.co.uk/bbcone/programmes/a-z/by/doctor > >> http://www.bbc.co.uk/bbctwo/programmes/a-z/by/food/all > >> > >> Or search within all radio, all tv (soon), or all BBC services: > >> http://www.bbc.co.uk/radio/programmes/a-z/by/chris/player > >> http://www.bbc.co.uk/tv/programmes/a-z/by/east (soon) > >> http://www.bbc.co.uk/programmes/a-z/by/skating/all > >> > >> With one known and soon to be fixed exception, all the /programmes > >> pages should be valid XML (and XHTML!), and hopefully easy to process > >> with XPath etc. > >> > >> Not new, but you can fetch schedule data through the /programmes site. > >> Today's schedules: > >> http://www.bbc.co.uk/radio4/programmes/schedules/fm > >> http://www.bbc.co.uk/bbc7/programmes/schedules > >> > >> Or a schedule for a particular date: > >> http://www.bbc.co.uk/bbcfour/programmes/schedules/2008/04/28 > >> http://www.bbc.co.uk/bbctwo/programmes/schedules/england/2008/05/22 > >> > >> (Unfortunately, BBC One and BBC Two data outside the London and > >> England regions can be patchy; we're working on improving that.) > >> > >> Add .xml to the end of a schedule URL to get an XML representation, or > >> .json for JSON. The format of the .xml and .json representations > >> isn't fixed yet, but we're interested in any feedback from people > >> using them. > >> > >> On Sat, May 17, 2008 at 3:38 PM, Brian Butterworth > >> <[EMAIL PROTECTED]> wrote: > >> > I wrote some code a while ago that goes though the BBC programme > >> > catalogue > >> > at > >> > > >> > http://www.bbc.co.uk/programmes/a-z > >> > > >> > and creates a database table that I used to work out what the correct > >> > iPlayer picture code to use for each, matching them up against the > >> > programme > >> > schedules from > >> > > >> > > >> > > http://www0.rdthdo.bbc.co.uk/cgi-perl/api/query.pl?method=bbc.schedule.getProgrammes&channel_id=$strChannel&start=$strDTS&end=$strDTE&limit=100&detail=schedule > >> > > >> > For some reason I can access http://www.bbc.co.uk/programmes/a-z from > a > >> > browser, but doing a > >> > file_get_contents("http://www.bbc.co.uk/programmes/a-z") from PHP > just > >> > locks > >> > up. > >> > > >> > Is this intentional? > >> > > >> > I'm just having another go at making a 'what's on now' iGoogle theme > for > >> > BBC > >> > channels... > >> > > >> > Brian Butterworth > >> > > >> - > >> Sent via the backstage.bbc.co.uk developer discussion group. To > >> unsubscribe, please send an email to [EMAIL PROTECTED] with > >> unsubscribe backstage-developer [your email] as the message. > >> > >> ________________________________ > >> Sent from Yahoo! Mail. > >> A Smarter Email. > > > > > > -- > > Please email me back if you need any more help. > > > > Brian Butterworth > > > > http://www.ukfree.tv - independent digital television and switchover > advice, > > since 2002 > > ________________________________ > > Sent from Yahoo! Mail. > > A Smarter Email. > - > Sent via the backstage.bbc.co.uk developer discussion group. To > unsubscribe, please send an email to [EMAIL PROTECTED] with > unsubscribe backstage-developer [your email] as the message. > -- Brian Butterworth http://www.ukfree.tv - independent digital television and switchover advice, since 2002

