Video Addon - Takes too long to Load Videos
#1
Hi,

I've written a code to scrape videos and titles from a few webpages and have added it to my main.py file for kodi video add-on. The add-on works fine, however it takes too long everytime (3-5mins) to load the list of videos and before streaming a video.
I believe the problem is kodi runs the code everytime (scraping all the webpages everytime). Is there a way to tell kodi to only update new videos or remember what it has loaded?

My main.py file details: egajabibiv.kodi (paste)

Please help.

Thanks,
Pravan
Reply
#2
I suspect if you wrote the code you're responsible for that kind of caching.  You might consider having a way to schedule the code to run every night (or every few hours), scrape everything, and store it either in an SQLLite db or even just a text file that you could then read when run from the GUI.
Reply

Logout Mark Read Team Forum Stats Members Help
Video Addon - Takes too long to Load Videos0