2014-11-22, 10:59
(2014-11-22, 08:59)exobuzz Wrote: SVN HEAD now has json support by default. I just tested on my pi, and once a listing has been cached (the bbc end is slow), it took about 5 seconds for bbc_one listing. you can all stop complaining now ;-)
This is great.
Testing with r238, and apart from the occasional delay (which might be BBC related), the time taken for most lists is now back to "normal" (2-3 seconds) before displaying, and much of that time is due to the startup cost of the Python interpreter so difficult to reduce any further.
Processing the 337 entries for BBC One while entering "Bargain Hunt" now takes just over 1.5 seconds:
Code:
08:49:27 28555.277344 T:2658137152 INFO: plugin.video.iplayer: Read File: http://www.bbc.co.uk/iplayer/ion/listview/masterbrand/bbc_one/service_type/tv/block_type/episodes/format/json
08:49:27 28555.277344 T:2658137152 INFO: plugin.video.iplayer: File not in cache, requesting...
08:49:28 28555.503906 T:2658137152 INFO: plugin.video.iplayer: URL Fetch took 0.22 sec for http://www.bbc.co.uk/iplayer/ion/listview/masterbrand/bbc_one/service_type/tv/block_type/episodes/format/json
08:49:29 28557.072266 T:2658137152 INFO: plugin.video.iplayer: Found 337 entries
Not sure if the caching is working though, as it always fails to find anything in the cache ("File not in cache, requesting...") even if I repeatedly enter the same programme listing. Not complaining, just an observation. Great stuff.