diff options
| author | Luke <luke.pulverenti@gmail.com> | 2015-11-26 23:37:58 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2015-11-26 23:37:58 -0500 |
| commit | 7f706faad24a240c2e2215cb8f5fcfd9185a1cca (patch) | |
| tree | 3289c88c5db262019e50d09a2a73af5632f8f13a | |
| parent | 532af874522aaa46dc1cec66789632aafeda1849 (diff) | |
| parent | 4415506837930b9de4c00dc9ecb2f6c6e361bc7a (diff) | |
Merge pull request #1287 from MediaBrowser/master
merge from master
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/LiveTvProgram.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs | 11 |
2 files changed, 17 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs index 689e1d23b..fcd065e79 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs @@ -28,7 +28,15 @@ namespace MediaBrowser.Controller.LiveTv return key; } } - return GetClientTypeName() + "-" + Name; + + if (IsSeries && !string.IsNullOrWhiteSpace(EpisodeTitle)) + { + var name = GetClientTypeName(); + + return name + "-" + Name + (EpisodeTitle ?? string.Empty); + } + + return base.CreateUserDataKey(); } /// <summary> diff --git a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs index 0e9ca3237..c58b5502b 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs @@ -52,10 +52,15 @@ namespace MediaBrowser.Controller.LiveTv return key; } } - - var name = GetClientTypeName(); - return name + "-" + Name + (EpisodeTitle ?? string.Empty); + if (IsSeries && !string.IsNullOrWhiteSpace(EpisodeTitle)) + { + var name = GetClientTypeName(); + + return name + "-" + Name + (EpisodeTitle ?? string.Empty); + } + + return base.CreateUserDataKey(); } public string ServiceName { get; set; } |
