2017-07-16, 23:15
(2017-07-16, 23:01)LongMan Wrote: I've figured out why imported items are always removed and re-added instead of synced and updated and added a fix (which will probably need discussing with other team members / developers).
@Montellese. I noticed that you have changed the plugin from a Service, to a "Discover-able Service". Is that the solution you were referring to earlier?
No but I realized that a media importer can consist of up to three different parts:
- A discovery service which detects potential media providers and tells Kodi about them
- A script capable of importing media items from a media provider
- A synchronisation service which detects changes to already imported media items and tells Kodi about them
That's why I've started renaming the "service" script to "discovery" service because there might also be a "synchronisation" service. Not every media importer has to implement all three of these parts though.