diff options
| -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 e4b52fd99..88bbe19b7 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 77404cfe8..27594317d 100644 --- a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs +++ b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs @@ -53,10 +53,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; } |
