just spit balling here. Depending on how often you change the movies out. Scrape once, or periodically, store information in some sort of data base and associate it to the movie name, so when you pull up the movie you could have it reference the data base to get the information for it, then display it on demand.
How you attach that to the Kodi is beyond me.
I do not use Kodi.
that would eliminate repetitious file scrapping and should cut down on time to get info in order to display it.
If you use something like or use 'exiftool' it can only get what information that is on the file, then maybe attach some code to search the internet for Idb whatever that web sight is called to get more information on the movie if it is available.