Closed bbakermmc closed 4 years ago
Can you add the Agent info on the Meta object. This basically tells what agent was used for the plex match. This way if you have the IMDB or TMDBID you can compare them that way.
guid="com.plexapp.agents.imdb://tt0322259?lang=en" ExternalProvider = imdb ExternalProviderId = tt0322259
public string ExternalProvider { get; set; } public string ExternalProviderId { get; set; } [JsonProperty("guid")] public string ExternalProviderInfo { get => null; set { var match = Regex.Match(value, @"\.(?<provider>[a-z]+)://(?<id>[^\?]+)"); ExternalProvider = match.Groups["provider"].Value; ExternalProviderId = match.Groups["id"].Value; } }
@bbakermmc Yep! I like that and can use it myself.
Plex.Api 1.0.94
I also preserved the original Guid field
This is good
Can you add the Agent info on the Meta object. This basically tells what agent was used for the plex match. This way if you have the IMDB or TMDBID you can compare them that way.
guid="com.plexapp.agents.imdb://tt0322259?lang=en" ExternalProvider = imdb ExternalProviderId = tt0322259