Jump to content

General Library RemoteProvider Configuration not available to IRemoteProviederwithoptions?


Recommended Posts

ginjaninja
Posted (edited)

I would like my custom series metadata provider to repsect the librarys current provider configuration in terms of TVDB | TMDB 'isenabled' and 'order'.

In the automatic pathway (library scan), my provider is able to determine the library provider configration based upon what Emby hands it. But in the manual pathway (click on series and then click identify), the libraries configuration does  not seem to be available (passed on by Emby).

Is there a difference in this respect between the two pathways or am i just not approaching it correctly. Basically i want my provider to change its behaviour based on what the other provider configuration is. So far, this works for automatic scanning but not manual identification.

thanks for any advice/help.

Edited by ginjaninja
Posted

HI, have the provider also implement ICustomMetadataProviderWithOptions. Then you can just use the new method and have the old method throw NotImplmentedException()

  • Like 1
Posted
On 15/11/2026 at 19:45, Luke said:

HI, have the provider also implement ICustomMetadataProviderWithOptions. Then you can just use the new method and have the old method throw NotImplmentedException()

Hi Luke, thanks for help but i cant find a usable route. My Ai is saying

Implementing ICustomMetadataProviderWithOptions does not change how Emby calls the provider’s manual search method. Manual search still calls GetSearchResults(SeriesInfo, CancellationToken), which has no library options parameter.

Its working for
FetchAsync but not for GetSearchResults *manual identify".

Is it possible to get the librarys wider provider config for the manual identify method?. I dont think i can even bodge it by working around the api from a path or an id becuase i dont think getsearchresults even gives a path or an id to the custom provider?

 

thanks

Posted

A custom provider and a remote metadata provider are two different things. you shouldn't mix them in the same class. for a remote metadata provider, you can have it implement IRemoteMetadataProviderWithOptions<Series, SeriesInfo>

ginjaninja
Posted
On 19/11/2026 at 19:59, Luke said:

A custom provider and a remote metadata provider are two different things. you shouldn't mix them in the same class. for a remote metadata provider, you can have it implement IRemoteMetadataProviderWithOptions<Series, SeriesInfo>

Thanks, my terminology was incorrect.
I have tidied the plugin to just class SeriesIdentityHelperProvider : IRemoteMetadataProviderWithOptions<Series, SeriesInfo>, IHasOrder

I still believe during the display of results of the manual identification process, not enough information is provided to the interface to determine the other provider configuration. I understand that the wider library provider configuration is 'findable' during the apply phase of the manual identification when the user actually applies the chosen identification, becuase at that point emby provides more information to the interface.

I didnt want my plugin doing things with tmdb, eg during manual identification,  if tmdb wasnt enabled on the library; to keep it as light touch and consistent as possible. But its not having an adverse effect, more just a point of learning.

  • Thanks 1

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...