mirror of
https://github.com/jellyfin/jellyfin-plugin-anidb.git
synced 2024-11-27 08:00:25 +00:00
Make StartDate nullable
This commit is contained in:
parent
b449d5355c
commit
37d93557fb
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user