Media Info callback and downloading a large number of resources - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Media Info callback and downloading a large number of resources (/showthread.php?tid=85079) |
Media Info callback and downloading a large number of resources - jbel - 2010-11-09 I find that I run into the same problem with every plugin that I develop where I have to scrape a very large number of pages in order to get media info for every item in the list. I was curious how other people are solving this issue? I am using asyncore to enable async downloading of lots of pages, however this can still take awhile. Usually I have enough info to display the list items after scraping the first page, the problem is that I need to scrape a page to get the media info for each list item. What are some ideas to get around this? Is it possible to update the media info for a list item after addDirectoryItems() has been called? Is it possible to set a callback into the plugin whenever a user requests the media info for a list item? Then I would only need to parse 1 page each time movie info is viewed. Thanks, Jon |