diff --git a/Jellyfin.Plugin.Anime/Providers/KitsuIO/ApiClient/ApiModel.cs b/Jellyfin.Plugin.Anime/Providers/KitsuIO/ApiClient/ApiModel.cs index 60bb676..19604b8 100644 --- a/Jellyfin.Plugin.Anime/Providers/KitsuIO/ApiClient/ApiModel.cs +++ b/Jellyfin.Plugin.Anime/Providers/KitsuIO/ApiClient/ApiModel.cs @@ -27,7 +27,7 @@ public class Attributes 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 diff --git a/Jellyfin.Plugin.Anime/Providers/KitsuIO/Metadata/KitsuIoSeriesProvider.cs b/Jellyfin.Plugin.Anime/Providers/KitsuIO/Metadata/KitsuIoSeriesProvider.cs index 22fa75a..a2f9967 100644 --- a/Jellyfin.Plugin.Anime/Providers/KitsuIO/Metadata/KitsuIoSeriesProvider.cs +++ b/Jellyfin.Plugin.Anime/Providers/KitsuIO/Metadata/KitsuIoSeriesProvider.cs @@ -44,8 +44,8 @@ public async Task> GetSearchResults(SeriesInfo s 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);