fix channel count
This commit is contained in:
parent
37a69d78e1
commit
f3454d3bf8
|
@ -153,7 +153,7 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(item1.OfficialRating) && string.Equals(item1.OfficialRating, item2.OfficialRating, StringComparison.OrdinalIgnoreCase))
|
if (!string.IsNullOrEmpty(item1.OfficialRating) && string.Equals(item1.OfficialRating, item2.OfficialRating, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
points += 1;
|
points += 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find common genres
|
// Find common genres
|
||||||
|
|
|
@ -174,7 +174,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||||
var result = new QueryResult<ChannelInfoDto>
|
var result = new QueryResult<ChannelInfoDto>
|
||||||
{
|
{
|
||||||
Items = returnList.ToArray(),
|
Items = returnList.ToArray(),
|
||||||
TotalRecordCount = returnList.Count
|
TotalRecordCount = allChannels.Count
|
||||||
};
|
};
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -985,6 +985,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||||
entities = entities.Where(i => i.IsParentalAllowed(currentUser));
|
entities = entities.Where(i => i.IsParentalAllowed(currentUser));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var entityList = entities.ToList();
|
||||||
|
entities = entityList;
|
||||||
|
|
||||||
if (query.StartIndex.HasValue)
|
if (query.StartIndex.HasValue)
|
||||||
{
|
{
|
||||||
entities = entities.Skip(query.StartIndex.Value);
|
entities = entities.Skip(query.StartIndex.Value);
|
||||||
|
@ -1006,7 +1009,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||||
return new QueryResult<RecordingInfoDto>
|
return new QueryResult<RecordingInfoDto>
|
||||||
{
|
{
|
||||||
Items = returnArray,
|
Items = returnArray,
|
||||||
TotalRecordCount = returnArray.Length
|
TotalRecordCount = entityList.Count
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user