|
|
|
@ -1378,7 +1378,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
internalQuery.ChannelIds = new[] { query.ChannelId };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var queryResult = _libraryManager.GetItems(internalQuery, user, new string[]{});
|
|
|
|
|
var queryResult = _libraryManager.GetItems(internalQuery, user, new string[] { });
|
|
|
|
|
IEnumerable<ILiveTvRecording> recordings = queryResult.Cast<ILiveTvRecording>();
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(query.Id))
|
|
|
|
@ -1783,9 +1783,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
MaxStartDate = now,
|
|
|
|
|
MinEndDate = now,
|
|
|
|
|
Limit = 1,
|
|
|
|
|
SortBy = new[] { "StartDate"}
|
|
|
|
|
SortBy = new[] { "StartDate" }
|
|
|
|
|
|
|
|
|
|
}, user, new string[]{}).Cast<LiveTvProgram>();
|
|
|
|
|
}, user, new string[] { }).Cast<LiveTvProgram>();
|
|
|
|
|
|
|
|
|
|
var currentProgram = programs.FirstOrDefault();
|
|
|
|
|
|
|
|
|
@ -1809,7 +1809,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
|
|
|
|
Limit = 1,
|
|
|
|
|
SortBy = new[] { "StartDate" }
|
|
|
|
|
|
|
|
|
|
}, user, new string []{}).Cast<LiveTvProgram>();
|
|
|
|
|
}, user, new string[] { }).Cast<LiveTvProgram>();
|
|
|
|
|
|
|
|
|
|
var currentProgram = programs.FirstOrDefault();
|
|
|
|
|
|
|
|
|
|