Skip to content

Commit

Permalink
Merge pull request #88 from jellyfin/kutsu
Browse files Browse the repository at this point in the history
Make StartDate nullable
  • Loading branch information
Bond-009 committed Aug 16, 2020
2 parents 5980f42 + 37d9355 commit 15d2d42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public async Task<IEnumerable<RemoteSearchResult>> 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);
Expand Down

0 comments on commit 15d2d42

Please sign in to comment.