Jump to content

Updating user data on metadata import


h.buckle

Recommended Posts

h.buckle

I'm working on a metadata plugin but I can't work out how to update user data (play state etc) on import for items that don't already exist in the library. For items that do already exist in the library I can look up the item and use the UserDataManager to update the UserItemData, but if the item doesn't currently exist this won't work.

MetadataResult has a UserDataList property but this doesn't seem to help as far as I can tell as UserItemData has to be used with SaveUserData and an existing item.

Link to comment
Share on other sites

h.buckle

Well the idea was to be able to restore play counts/watched status etc from local metadata in the event the library was lost or you want to start with a new library. It's not a huge deal though.

 

One other question - can collections be created from metadata import, ie by returning MetadataResult<BoxSet> or do you need to use the CollectionManager ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...