Giter VIP home page Giter VIP logo

Comments (2)

inb4after avatar inb4after commented on September 18, 2024

Ratings are handled by TMDbHelper and its service monitor feature. It does cache ratings from TMDb and OMDb in a local database which are updated when item properties are refreshed periodically. It caches all previously looked up item properties, to improve speed when it is looked up later on.

Items from addons other than TMDbHelper (including library items) need to wait for the service monitor to acknowledge the newly selected item, which then triggers the property lookups. It checks if the properties exist in the database already or if a certain amount of time has passed since the last check, before doing a new lookup.

Items from TMDbHelper itself don't need to wait for the service monitor to acknowledge the new item. Some ratings like TMDb ratings which are fetched in the same API call as the list you are viewing can be displayed instantly and are usually the most updated. You can test this by opening a TMDb list from this addon and seeing if there is a timing difference.

AuraMOD uses variables to dynamically switch between whichever property is available first, which is usually instant. The delay upon switching items is probably caused by the service monitor, as we need to wait for the selected item details before looking up properties for it.

It could also be that Kodi itself struggles with looking up and/or retrieving custom item properties, which can be easy to notice on lower end devices or slower network speeds. For example, a high-end PC will almost always be many times faster overall than a device like the NVidia Shield.

If you would like a more accurate and in-depth understanding of how it all works you could post this same question on the TMDbHelper issues page, @jurialmunkey created the addon and would be able to help us figure it out.

from skin.auramod.

HairyHook avatar HairyHook commented on September 18, 2024

Appreciate the detailed explanation, @inb4after!! For the record, all my widgets are coming from TMDBHelper, so I will reach out to @jurialmunkey to see if he has any idea.

from skin.auramod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.