Add metadata to items after directory has loaded? - 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: Add metadata to items after directory has loaded? (/showthread.php?tid=90002) |
Add metadata to items after directory has loaded? - anarchintosh - 2011-01-09 for my plugin, the site i am scraping for movies (MOVIEINDEX) provides imdb links, so i made a tiny imdb scraper to get poster (Get_Meta): PHP Code: def MOVIEINDEX(url): the problem is that this gives me a massive waiting time for directory to load as it scrapes all the relevant imdb pages.... is there a way to have the imdb scraping and icon adding going on as in the backgroung as i am browsing the movie directory? (similiar to the Apple Trailers plugin) - Sranshaft - 2011-01-09 My python isn't really up to snuff and someone with a little more knowledge might be able to correct me but I would think throwing the image fetching into a separate thread would help with this. Or if it's available an async image downloading function. At least that what I would do if this was C#. |