Printable R3 Listings - Continuing

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • french frank
    Administrator/Moderator
    • Feb 2007
    • 30510

    Originally posted by Andrew Slater View Post
    There's been a bit of a problem this week: the internal format of the BBC schedule page has changed quite radically, so I'm having to re-write my code to read it. I'll post an update later as to whether I've succeeded or given up
    They do that, don't they?
    It isn't given us to know those rare moments when people are wide open and the lightest touch can wither or heal. A moment too late and we can never reach them any more in this world.

    Comment

    • Andrew Slater
      Full Member
      • Mar 2007
      • 1798

      Yes, they do.

      I've given up for today. Will try again tomorrow.

      Sorry for the inconvenience .......

      Comment

      • Andrew Slater
        Full Member
        • Mar 2007
        • 1798

        Getting there, but the times are in GMT, which will get interesting when the clocks change!

        Comment

        • Forget It (U2079353)
          Full Member
          • Nov 2010
          • 132

          Hi Andrew

          thanks for your continuing efforts.
          They have been and are much appreciated here.

          If you want a second technical eye on the biz
          - do let me know what the internal format now looks like.
          I was whizz at the xml/xsl versions way back when.

          Comment

          • Andrew Slater
            Full Member
            • Mar 2007
            • 1798

            Originally posted by Forget It (U2079353) View Post
            Hi Andrew

            thanks for your continuing efforts.
            They have been and are much appreciated here.

            If you want a second technical eye on the biz
            - do let me know what the internal format now looks like.
            I was whizz at the xml/xsl versions way back when.
            Thanks for the offer - I'm nearly there now; it just needs more programming time. The xml version is long gone. Up until last week I've been 'scraping' the html code, but they've moved the details to an ld+json script section towards the end of the schedule file. I've managed to decode it in a stand-alone bit of php code, and now just need to integrate it into the existing code (and find a way of automatically reading the start and end times to allow for DST - hopefully trivial - although it's not desperate yet, as I have until the end of October to fix that!)

            For what it's worth, here's a summary of today's schedule:

            start: 2018-09-15T00:00:00+00:00
            end: 2018-09-15T06:00:00+00:00
            Through the Night
            Gershwin's music in a concert by pianist Josep Colom and Barcelona Symphonic Wind Band.

            Rhapsody in Blue
            Gershwin's music in a concert by pianist Josep Colom and Barcelona Symphonic Wind Band.

            start: 2018-09-15T06:00:00+00:00
            end: 2018-09-15T08:00:00+00:00
            Breakfast
            Martin Handley presents Radio 3's classical breakfast show, featuring listener requests.

            Saturday - Martin Handley
            Martin Handley presents Radio 3's classical breakfast show, featuring listener requests.

            start: 2018-09-15T08:00:00+00:00
            end: 2018-09-15T11:15:00+00:00
            Record Review

            Tom McKinney with Sarah Walker
            Building a Library on Mozart's Concerto in E flat for two pianos, K365

            start: 2018-09-15T11:15:00+00:00
            end: 2018-09-15T12:00:00+00:00
            Music Matters
            Kate Molleson talks to Estonian-American conductor Neeme Jarvi and Else Marie Pade.

            When Words Fail
            Kate Molleson talks to Estonian-American conductor Neeme Jarvi and Else Marie Pade.

            start: 2018-09-15T12:00:00+00:00
            end: 2018-09-15T14:00:00+00:00
            Inside Music
            Percussionist Colin Currie introduces a colourful selection of music - from the inside.

            Inside Music with Colin Currie
            Percussionist Colin Currie introduces a colourful selection of music - from the inside.

            start: 2018-09-15T14:00:00+00:00
            end: 2018-09-15T15:00:00+00:00
            Sound of Dance

            Tap with Clare Halse and Simon Adkins from the musical 42nd Street
            The world of tap with Clare Halse and Simon Adkins.

            start: 2018-09-15T15:00:00+00:00
            end: 2018-09-15T16:00:00+00:00
            Jazz Record Requests

            15/09/2018
            Alyn Shipton presents jazz records from across the genre.

            start: 2018-09-15T16:00:00+00:00
            end: 2018-09-15T17:30:00+00:00
            J to Z
            US piano star Vijay Iyer shares his musical inspirations.

            Vijay Iyer
            US piano star Vijay Iyer shares his musical inspirations.

            start: 2018-09-15T17:30:00+00:00
            end: 2018-09-15T21:00:00+00:00
            Radio 3 in Concert

            Leeds International Piano Competition 2018
            The second round of the concerto finals, live from Leeds Town Hall.

            start: 2018-09-15T21:00:00+00:00
            end: 2018-09-15T23:00:00+00:00
            Hear and Now
            An Open Ear concert of new music, with We Spoke, Exaudi, Gwen Rouger, and Sarah Angliss

            Open Ear: Exaudi, We Spoke, Sarah Angliss, Gwen Rouger
            An Open Ear concert of new music, with We Spoke, Exaudi, Gwen Rouger, and Sarah Angliss

            start: 2018-09-15T23:00:00+00:00
            end: 2018-09-16T00:00:00+00:00
            Geoffrey Smith's Jazz
            Geoffrey Smith surveys the career of jazz vocalist Shirley Horn (1934-2005)

            Shirley Horn
            Geoffrey Smith surveys the career of jazz vocalist Shirley Horn (1934-2005)

            Comment

            • french frank
              Administrator/Moderator
              • Feb 2007
              • 30510

              Originally posted by Andrew Slater View Post
              Up until last week I've been 'scraping' the html code, but they've moved the details to an ld+json script section towards the end of the schedule file. I've managed to decode it in a stand-alone bit of php code, and now just need to integrate it into the existing code (and find a way of automatically reading the start and end times to allow for DST
              Um, well … if you need any help …

              It isn't given us to know those rare moments when people are wide open and the lightest touch can wither or heal. A moment too late and we can never reach them any more in this world.

              Comment

              • Forget It (U2079353)
                Full Member
                • Nov 2010
                • 132

                Great sleuthing Andrew!

                you probably know this but:

                you can get the entire week in JSON object by specifying
                radio3 (p00fzl8t)
                year (2018)
                week (37)
                like this


                Fare forward!

                Comment

                • Andrew Slater
                  Full Member
                  • Mar 2007
                  • 1798

                  Thanks for that - yes, there's an ld+json script section in there, but it covers Mon-Sun whereas my list covers Sat-Fri. It's not a problem as my code loops through the 7 day files. Or have you found a pure json version of the webpage? I can only find them for the programme pages, e.g.https://www.bbc.co.uk/programmes/m0000d1k.json and the playlists: https://www.bbc.co.uk/programmes/m0000d1j/segments.json. (They're both readable in Firefox.)

                  Comment

                  • Andrew Slater
                    Full Member
                    • Mar 2007
                    • 1798

                    Right ........

                    I've re-written, run and uploaded (including pdfs) to the usual place ......



                    I've glanced through it and it seems to be OK, but please let me know if you spot any 'features'.

                    I'm hoping things will go all right on the server next week, and on 28th October and 31st March when the clocks change, but we'll see.

                    I just need to do the same for the playlist generator code before next Saturday morning. (This morning's playlist run was OK because it used the files downloaded last week which were of course in the old format.)

                    Comment

                    • ferneyhoughgeliebte
                      Gone fishin'
                      • Sep 2011
                      • 30163

                      You're a , Andrew - all working perfectly here. Many thanks indeed for all your efforts this week - s by the jeroboam!
                      [FONT=Comic Sans MS][I][B]Numquam Satis![/B][/I][/FONT]

                      Comment

                      • Forget It (U2079353)
                        Full Member
                        • Nov 2010
                        • 132

                        Originally posted by ferneyhoughgeliebte View Post
                        You're a , Andrew - all working perfectly here. Many thanks indeed for all your efforts this week - s by the jeroboam!

                        Comment

                        • Andrew Slater
                          Full Member
                          • Mar 2007
                          • 1798

                          Well .........

                          You might have noticed that I've been tinkering.

                          I think I've made the final change for the time being, which involved putting the subtitles in the opposite order to that deemed correct by the BBC. e.g. in CotW I have put the composer's name in the first subtitle, with the edition (episode) subtitle last. This also seems to fit better in programmes which have series and episode in separate subtitles. For some reason the BBC thinks it should be the other way round

                          Now on to the playlists .....

                          Comment

                          • Forget It (U2079353)
                            Full Member
                            • Nov 2010
                            • 132

                            It's great to have the Radio4 and 4X
                            back online
                            T H A N K S

                            Comment

                            • Andrew Slater
                              Full Member
                              • Mar 2007
                              • 1798

                              Originally posted by Forget It (U2079353) View Post
                              It's great to have the Radio4 and 4X
                              back online
                              T H A N K S
                              Sorry it took so long. There were problems with them that needed more work to solve.

                              Comment

                              • Andrew Slater
                                Full Member
                                • Mar 2007
                                • 1798

                                The main Radio 3 listing for the seven days beginning 22/09/18 has been posted at the following permanent link:



                                This contains an on-line version; the pdfs may be downloaded (after they have been auto-generated shortly before 9.30pm on a Friday) by hovering the mouse over the 'pdfs' button and either left-clicking on the appropriate file to display it, then downloading through the pdf reader, or by right-clicking on it and 'saving as'.

                                An archive is now being built up on the new website - see the 'archive' button. (Note that the listings for the first two weeks are test versions and aren't complete.)

                                Printer - friendly html versions are available via the 'print-friendly' button, the download or display procedure is as for the pdfs detailed above.

                                Note that the online version now lands on the current programme; to read next week's list early, use the 'Archive' drop-down list.

                                (All went without a hitch: I got distracted so couldn't post immediately.)

                                Comment

                                Working...
                                X