Merge pull request #7476 from crobibero/tmdb-ended
This commit is contained in:
commit
dd6845b8f3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user