2014-11-12, 00:19
(2014-11-11, 12:29)djpudsey Wrote: As I'm a big user of Radio 3 and have had the same problem of listing requests timing out at the server I've been having a look at this problem and have suggestion for a fix - very buggy at the moment, but it does get me the Radio 3/4 listings okay. The trick is to add a date param to the request url (eg add /date/2014-11-11) and make multiple requests, one for the current day and the previous 7 days and stack the returned xml together for parsing. This doesn't seem to cause a problem with the parser for the radio listings (but seems not to work as expected for tv listings - gives a truncated list of episodes). My test hack is in the function read_rss() in iplayer2.py
Thanks for that. I investigated the same scheme and found that the date filters are usable for R3/R4/WS, but they cause the problems with other channels that you found. I think what is happening is the date filters are applied against the original broadcast dates for programmes, so a lot of repeats get screened out. Therefore, you see episode counts for channels like CBBC and R4X greatly reduced. The date filters probably work OK for R3/R4/WS (and most other radio channels) because you don't get a whole lot of repeats. Using the date filters is the only way I've found to get more or less full listings for R3/R4/WS with category information included. I don't think that matters for this plugin, though.