stremio-core
stremio-core copied to clipboard
design flaw: third party addons cannot be updated for guest users
because there's no API addonCollectionGet
for guest users, third party addons cannot be updated
should be fixed long term
This can be resolved using the same algo we use to update official addons: https://github.com/Stremio/stremio-core/blob/master/src/state_types/models/context.rs#L140
We can just do another async call to get the latest thirdparty addon catalog, and update
There must be a last_modified
field so we update addons only if they are older than a fixed duration, like 1 week.
a bit of a challenge could be to properly schedule the requests, because if we request all addons on app start that will cause the same issues board does.
How could we avoid requesting all addons on app start?
Should we auto-update ONLY the addons that are part of the community catalog?
Hello can I work on this?
It's not yet clear how exactly we want to implement it. I suggest we keep the current update the official addons as and update the 3rd party addons based on the community catalog both of those should be triggered when PullAddonsFromAPI action is dispatch, without using any timers or flags in the core