mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
17 lines
425 B
C#
17 lines
425 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using AutoMapper;
|
|
using NzbDrone.Api.QualityProfiles;
|
|
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Api.Resolvers
|
|
{
|
|
public class EndTimeResolver : ValueResolver<Episode, DateTime>
|
|
{
|
|
protected override DateTime ResolveCore(Episode source)
|
|
{
|
|
return source.AirDate.Value.AddMinutes(source.Series.Runtime);
|
|
}
|
|
}
|
|
}
|