New: Add "enddate" tag to Kodi/Jellyfin series metadata

This commit is contained in:
scampower3 2023-10-17 14:49:22 +08:00 committed by GitHub
parent 076aaba908
commit ec8da1c7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"))); tvShow.Add(new XElement("premiered", series.FirstAired.Value.ToString("yyyy-MM-dd")));
} }
// Add support for Jellyfin's "enddate" tag
if (series.Status == SeriesStatusType.Ended && series.LastAired.HasValue)
{
tvShow.Add(new XElement("enddate", series.LastAired.Value.ToString("yyyy-MM-dd")));
}
tvShow.Add(new XElement("studio", series.Network)); tvShow.Add(new XElement("studio", series.Network));
foreach (var actor in series.Actors) foreach (var actor in series.Actors)