fix tv recording retrieval

This commit is contained in:
Luke Pulverenti
2015-06-02 23:16:15 -04:00
parent 9728668751
commit 92ce7c0fa8
3 changed files with 45 additions and 33 deletions

View File

@@ -43,16 +43,14 @@ namespace MediaBrowser.Controller.LiveTv
{
var name = GetClientTypeName();
if (!string.IsNullOrEmpty(RecordingInfo.ProgramId))
if (!string.IsNullOrEmpty(ProgramId))
{
return name + "-" + RecordingInfo.ProgramId;
return name + "-" + ProgramId;
}
return name + "-" + RecordingInfo.Name + (RecordingInfo.EpisodeTitle ?? string.Empty);
return name + "-" + Name + (EpisodeTitle ?? string.Empty);
}
public RecordingInfo RecordingInfo { get; set; }
public string ServiceName { get; set; }
/// <summary>

View File

@@ -42,16 +42,14 @@ namespace MediaBrowser.Controller.LiveTv
{
var name = GetClientTypeName();
if (!string.IsNullOrEmpty(RecordingInfo.ProgramId))
if (!string.IsNullOrEmpty(ProgramId))
{
return name + "-" + RecordingInfo.ProgramId;
return name + "-" + ProgramId;
}
return name + "-" + RecordingInfo.Name + (RecordingInfo.EpisodeTitle ?? string.Empty);
return name + "-" + Name + (EpisodeTitle ?? string.Empty);
}
public RecordingInfo RecordingInfo { get; set; }
public string ServiceName { get; set; }
[IgnoreDataMember]