2016-05-24, 00:03
(2016-05-23, 10:50)Rubicon99 Wrote: I noticed yesterday that the Revenue amount for The Revenant being pulled from the TMDB API for was way off. It was reporting $167m whereas the TMDB website was was reporting $519m. I thought it may be an issue with the TMDB API database so I posted on their forum but was advised that the Revenue amount for The Revenant was updated from $167m to $519m on 23 April. I deleted the json cache files today and now the correct amount of $519m is being pulled, so looks like it was a persistent cache issue.
You're right. Some info is stored in a persistant cache to prevent overloading API's with too many requests. For example the script already hits the TMDB API with over 2 mln requests a day...
All info that is considered static is stored in the persistant cache (which you can wipe by deleting the files in addon_data). I considered the data from TMDB as static but I forgot about the revenue... The rotten tomatoes details are only stored in the temporary cache, flushed at fresh kodi boot.
I'll play with it a little to see if I can find a proper solution without loosing too much lookup speed or overloading the API.
Maybe ignore the details from the persistant cache for movies younger than 1 year or something ?