(2022-02-12, 20:32)-Dis Wrote: @kevwag
D+ doesn't offer data of which seasons are watched. Add-on have to load every season and calculate watched and total videos.
Even file size per season is not greater than something like 300 kilobytes processing all videos per season takes some time. Example Gold Rush has 12 seasons and about 20 episodes per season. I tested that loading Gold Rush season listing takes about 5 seconds to load with it enabled and almost instant without it.
But maybe adding setting for it would be good way to deal with this situation.
I still try to found way make it little bit faster.
I just couple days ago was investigating why images takes so much time to load. Add-on uses full quality artwork and images are about 2 Mb each. Website uses lower quality images which are about 80 kilobytes. I am not ready to sacrifice that much quality. For some currently unknown reason I can't get different qualities to work in add-on.
I'm happy to wait 5 seconds tbh, especially while I'm still working my way through all the stuff discovery decided to "un-watch" for me - 5 seconds on the main page for a show is quicker than opening each season to see which ones I've already updated. Like you said, it takes a lot longer for the thumbnails to load anyway so the watched markers will still arrive before the rest of the page has finished loading.
If my Kodi experience is typical of most users, we've probably all got used to the busy-spinner regularly indicating mysterious delays where nothing is actually happening. In fact, "nothing" can sometimes take a couple of minutes to
not happen before the spinner disappears and you're back in control! I'm guessing that Kodi must be written like old-school pre-DOS software that can't multi-task and has to wait for every execution to complete before it can start another.
Some things lock you out for silly amounts of time and it rarely makes any sense as to why. Setting an episode as watched on Trakt can take 30 seconds or longer, some add-ons are much slower at this than others despite the task being identical! All it's doing is sending an http request and receiving an acknowledgement - I can't think of any good reason why the user needs to be prevented from browsing menus or doing something else while it's waiting for the response.
You would understand more about this than me - is there a valid reason for these "busy" lockouts or is it just sloppy coding from some add-on devs? I've noticed that in your add-on, I can continue to browse through menus and shows, even when most of the thumbnails haven't loaded yet - it doesn't lock me out waiting for the images to load. Is it possible maybe, to handle getting the season watched status in the same way as the images so that it doesn't actually delay anything else while it updates?