Merge pull request #7476 from crobibero/tmdb-ended

This commit is contained in:
Joshua M. Boniface 2022-03-19 12:33:23 -04:00 committed by GitHub
commit dd6845b8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,7 +264,8 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
series.RunTimeTicks = seriesResult.EpisodeRunTime.Select(i => TimeSpan.FromMinutes(i).Ticks).FirstOrDefault(); series.RunTimeTicks = seriesResult.EpisodeRunTime.Select(i => TimeSpan.FromMinutes(i).Ticks).FirstOrDefault();
if (string.Equals(seriesResult.Status, "Ended", StringComparison.OrdinalIgnoreCase)) if (string.Equals(seriesResult.Status, "Ended", StringComparison.OrdinalIgnoreCase)
|| string.Equals(seriesResult.Status, "Canceled", StringComparison.OrdinalIgnoreCase))
{ {
series.Status = SeriesStatus.Ended; series.Status = SeriesStatus.Ended;
series.EndDate = seriesResult.LastAirDate; series.EndDate = seriesResult.LastAirDate;