Make StartDate nullable

This commit is contained in:
crobibero 2020-07-26 11:59:31 -06:00
parent b449d5355c
commit 37d93557fb
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ namespace Jellyfin.Plugin.Anime.Providers.KitsuIO.ApiClient
public string Synopsis { get; set; }
public Titles Titles { get; set; }
public string AverageRating { get; set; }
public DateTimeOffset StartDate { get; set; }
public DateTimeOffset? StartDate { get; set; }
public PosterImage PosterImage { get; set; }
// Episode specific

View File

@ -44,8 +44,8 @@ namespace Jellyfin.Plugin.Anime.Providers.KitsuIO.Metadata
SearchProviderName = Name,
ImageUrl = series.Attributes.PosterImage.Medium.ToString(),
Overview = series.Attributes.Synopsis,
ProductionYear = series.Attributes.StartDate.Year,
PremiereDate = series.Attributes.StartDate.DateTime,
ProductionYear = series.Attributes.StartDate?.Year,
PremiereDate = series.Attributes.StartDate?.DateTime,
};
parsedSeries.SetProviderId(ProviderNames.KitsuIo, series.Id.ToString());
results.Add(parsedSeries);