mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-06-29 10:23:36 +02:00
Sessions query param nowPlaying null/false/true now works as expected
This commit is contained in:
parent
99bcb6f1b8
commit
e622e7851c
|
@ -112,9 +112,11 @@ public class SessionController : BaseJellyfinApiController
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nowPlaying.GetValueOrDefault())
|
if (nowPlaying.HasValue)
|
||||||
{
|
{
|
||||||
result = result.Where(i => i.NowPlayingItem != null);
|
result = nowPlaying.Value
|
||||||
|
? result.Where(i => i.NowPlayingItem != null)
|
||||||
|
: result.Where(i => i.NowPlayingItem == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(result);
|
return Ok(result);
|
||||||
|
|
Loading…
Reference in a new issue