Jump to content

IExternalId Request for Devs


mickle026

Recommended Posts

mickle026

Is it possible not to have these repeat in the UI if we use the same  IExternalId in several plugins, but are in different namespaces

I am currently using these a lot, especially one I created for aliases, which I am currently using in a JSON metadata server.
One of my plugins creates the XML/Json for the server and another Reads it as a metadata fetcher, but they both show up in the UI

When they are in several different plugins, they repeat in the metadata editor, in the Identify dialog etc

I am using the EXACT same code in both plugins, the class is the same, its just the namespace thats not.  I wish to use it also in other place and testing it out it repeats a 3rd and a 4th time.  There is no need for them to repeat, they are the same ProviderName.

public class ExternalAliasesCSV : IExternalId
    {
        public string Name => "Aliases (Comma Seperated)";
        public string ProviderName => "ALCSV.";
        public string Key => "ALCSV.";
        public string UrlFormatString => null;
        public bool Supports(IHasProviderIds item) => item is Person;
    }

Screenshot2023-03-29at23-33-57Emby.png.c449f4e7ced3c6779518806dd2bfd877.png

Screenshot2023-03-29at23-30-47Emby.png.f816e97c4a1a7825a81c56846da6189d.png

Well I tested Adding them all for all plugins in the same Namespace so all plugins have exactly the same code for External IDs, They still repeat

namespace ExternalIDS
{
    class ExternalIDs
    {

Screenshot2023-03-30at10-40-36Emby.png.89bcaf150e158f8e9adfa86d50ac773e.png

Edited by mickle026
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...