fix missing seasons being returned when they shouldn't
This commit is contained in:
parent
c543fdea3a
commit
4301440bfd
|
@ -492,12 +492,12 @@ namespace MediaBrowser.Api.UserLibrary
|
||||||
|
|
||||||
private IEnumerable<BaseItem> FilterVirtualSeasons(GetItems request, IEnumerable<BaseItem> items, User user)
|
private IEnumerable<BaseItem> FilterVirtualSeasons(GetItems request, IEnumerable<BaseItem> items, User user)
|
||||||
{
|
{
|
||||||
if (request.IsMissing.HasValue && request.IsUnaired.HasValue)
|
if (request.IsMissing.HasValue && request.IsVirtualUnaired.HasValue)
|
||||||
{
|
{
|
||||||
var isMissing = request.IsMissing.Value;
|
var isMissing = request.IsMissing.Value;
|
||||||
var isUnaired = request.IsUnaired.Value;
|
var isVirtualUnaired = request.IsVirtualUnaired.Value;
|
||||||
|
|
||||||
if (!isMissing && !isUnaired)
|
if (!isMissing && !isVirtualUnaired)
|
||||||
{
|
{
|
||||||
return items.Where(i =>
|
return items.Where(i =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user