There is an error when you try to make a class inherit the Metadata class
Newtonsoft.Json.JsonSerializationException: Error setting value to 'ExternalProviderInfo' on 'PlexApps.Dto.PlexShowDto'. System.ArgumentNullException: Value cannot be null. (Parameter 'input')
public string ExternalProviderInfo
{
get
{
return (string) null;
}
set
{
Match match = Regex.Match(value, "\\.(?<provider>[a-z]+)://(?<id>[^\\?]+)");
this.Guid = value;
this.ExternalProvider = match.Groups["provider"].Value;
this.ExternalProviderId = match.Groups["id"].Value;
}
}
public class PlexShowDto : Metadata
{
public List<PlexSeasonDto> PlexSeasons { get; set; }
}
public class PlexSeasonDto : Metadata
{
public List<Metadata> PlexEpisodes { get; set; }
}
Can this just be a getter or check for null ;) ?
There is an error when you try to make a class inherit the Metadata class
Newtonsoft.Json.JsonSerializationException: Error setting value to 'ExternalProviderInfo' on 'PlexApps.Dto.PlexShowDto'. System.ArgumentNullException: Value cannot be null. (Parameter 'input')