plugin.program.autowidget icon indicating copy to clipboard operation
plugin.program.autowidget copied to clipboard

[Request] Let Exploded and Cloned Groups Update Automatically

Open drinfernoo opened this issue 4 years ago • 5 comments

Basically, if a group consists of an exploded or cloned directory, let that group automatically update its paths with any items from the source path that have been added since the group was created.

drinfernoo avatar Jun 23 '20 19:06 drinfernoo

https://www.reddit.com/r/addons4kodi/comments/fqsvp3/_/fv8c2yq

drinfernoo avatar Jun 23 '20 19:06 drinfernoo

For cloned groups, I want these to be created as a static shortcut group, to be edited as the user sees fit.

For exploded groups, I think the best course will be to have two options: synced or not. If the group is "synced", then it'll pull paths fresh every time. If not, then it'll act as the current exploded groups do.

drinfernoo avatar Jul 14 '20 13:07 drinfernoo

Thinking about this a bit more, I think even Widget Groups should work the way Shortcut ones do, since you can change the labels, content type, etc... for those as well 🤔

drinfernoo avatar Jul 21 '21 20:07 drinfernoo

@drinfernoo the current code tries to estimate how often a path changes. Could impliment it like this

  • if a path inside an exploded group is requested (e.g. loaded into a widget) then evaluate the exploded group as if its also a path.
  • if the group path seems likely to have changed then do a queued refresh on it
  • after any path refresh then look up if that path is synced to an exploded group
  • run the exploding code again.
    • add new paths
    • remove missing paths.
    • maybe not changing name of paths that didn't change?

I don't think it's that bad to make exploded groups synced always as long as changing names is allowed. Maybe the only reason not to is if you want to setup a static path in teh group and syncing allows removing paths?

djay avatar Aug 24 '22 04:08 djay

Does this syncing of exploded groups work?

hackmonker avatar Sep 09 '23 05:09 hackmonker