Jump to content

Implement custom ItemResolver


jelum

Recommended Posts

Hi,

I want to fill provider id for Movie type based on file name. As I understand, I can do this only inheriting ItemResolver<T> type. I played a little bit with this class and have a several questions:

  • How I can detect filename of the new added file? ItemResolveArgs's args points on library folder, args.GetFileSystemChildren() return all files in library
  • Since I want to fill only provider id, what additional data I have to fill to make a valid return object?
  • What object I have to return from the Resolve method - null or valid Movie object?

Thanks in advance for help

Link to comment
Share on other sites

3 hours ago, jelum said:

I want to fill provider id for Movie type based on file name

Hi.  The provider ID is just metadata so you would want a metadata provider, not an item resolver. 

  • Thanks 2
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...