aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-26 00:21:32 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-26 00:21:32 -0400
commite6178a65f949cfdcbe6e77c945250343506f80cc (patch)
treed6a846f2cacfc00f7d9a414d89d62d0aef2c0930 /Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
parentce0547abde8a245bd2e107156be2549582fbe5bc (diff)
rework tuner channel id
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs')
-rw-r--r--Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
index 35868d318e..2eec3df8a5 100644
--- a/Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/TimerManager.cs
@@ -166,5 +166,10 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
{
return GetAll().FirstOrDefault(r => string.Equals(r.Id, id, StringComparison.OrdinalIgnoreCase));
}
+
+ public TimerInfo GetTimerByProgramId(string programId)
+ {
+ return GetAll().FirstOrDefault(r => string.Equals(r.ProgramId, programId, StringComparison.OrdinalIgnoreCase));
+ }
}
}