Add support for Jellyfin's "enddate" tag when generating the xbmc metadata nfo file.

This commit is contained in:
LJQ 2023-10-12 18:14:59 +08:00
parent 076aaba908
commit 172f8b56c3
1 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,12 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
tvShow.Add(new XElement("premiered", series.FirstAired.Value.ToString("yyyy-MM-dd")));
}
// Add support for Jellyfin's "enddate" tag
if (series.Status.Equals(SeriesStatusType.Ended) && series.LastAired.HasValue)
{
tvShow.Add(new XElement("enddate", series.LastAired.Value.ToString("yyyy-MM-dd")));
}
tvShow.Add(new XElement("studio", series.Network));
foreach (var actor in series.Actors)