mirror of https://github.com/jellyfin/jellyfin.git
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);
|
||||
|
|
Loading…
Reference in New Issue