2023-08-25, 21:59
(2023-08-25, 21:45)jbinkley60 Wrote:(2023-08-25, 19:59)jepsizofye Wrote: Added (lengthy) modules for Trakt (trending, popular, watchlist, custom lists, collection) and TMDB scraping for Movie content, speed tests are great taking less than 3 seconds to scrape and display 100 movies on initial listing.
Employing an sqlite3 cache the subsequent listings of already scraped content taking on average 0.5-0.8 seconds for the same 100 movies.
But, I wrote the modules on my Linux development machine using pyCurl for the speed increase only to realize this is not part of Kodi and is not available on Android platforms (potentially not Windows either, untested).
So that will need to be re-written using requests, hoping it will be comparable in speed to pyCurl but I have my doubts.
Potentially I will include both and on the unavailability of pyCurl on a platform just fallback to requests - if I cannot get requests to the same performance.
Are you using pyCurl to pull images or metadata ? Both can be pulled via normal urllib commands. Here's an example of image and xml fetching / parsing that I use for TMDB and it is lightening fast.
Thanks,
Jeff
just metadata, currently setting images with list item SetArt but i intend to utilize addAvailableArtwork in the future
urllib3 might be a good alternative, thanks for the suggestion
here's the chart i found, my own tests seem to indicate it is accurate