aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/LiveTv
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-05 20:59:21 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-01-05 20:59:21 -0500
commitb4ac51aa1052c895ade917c5b4d314c09d3b29d8 (patch)
tree3bdcaf0b5da1648513e85627e5ea1819fcb908b5 /MediaBrowser.Controller/LiveTv
parent6ed380ed1be293ef636570cf2f16c9c95f0858eb (diff)
Added SupportsAutoRunAtStartup
Diffstat (limited to 'MediaBrowser.Controller/LiveTv')
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs9
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs9
2 files changed, 16 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs b/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
index 8676540fd0..93de9d5c34 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
@@ -11,7 +11,14 @@ namespace MediaBrowser.Controller.LiveTv
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
- return GetClientTypeName() + "-" + Name;
+ var name = GetClientTypeName();
+
+ if (!string.IsNullOrEmpty(RecordingInfo.ProgramId))
+ {
+ return name + "-" + RecordingInfo.ProgramId;
+ }
+
+ return name + "-" + RecordingInfo.Name + (RecordingInfo.EpisodeTitle ?? string.Empty);
}
public RecordingInfo RecordingInfo { get; set; }
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
index 9dfc7f828d..bc4ed54934 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
@@ -11,7 +11,14 @@ namespace MediaBrowser.Controller.LiveTv
/// <returns>System.String.</returns>
public override string GetUserDataKey()
{
- return GetClientTypeName() + "-" + Name;
+ var name = GetClientTypeName();
+
+ if (!string.IsNullOrEmpty(RecordingInfo.ProgramId))
+ {
+ return name + "-" + RecordingInfo.ProgramId;
+ }
+
+ return name + "-" + RecordingInfo.Name + (RecordingInfo.EpisodeTitle ?? string.Empty);
}
public RecordingInfo RecordingInfo { get; set; }