Update Emby.Server.Implementations/SyncPlay/GroupController.cs

This commit is contained in:
BaronGreenback 2020-10-22 13:28:09 +01:00 committed by GitHub
parent 36fee4e60a
commit 1b8adf0f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,8 +174,10 @@ namespace Emby.Server.Implementations.SyncPlay
case SyncPlayBroadcastType.CurrentSession: case SyncPlayBroadcastType.CurrentSession:
return new SessionInfo[] { from }; return new SessionInfo[] { from };
case SyncPlayBroadcastType.AllGroup: case SyncPlayBroadcastType.AllGroup:
return Participants.Values.Select( return Participants
session => session.Session).ToArray(); .Values
.Select(session => session.Session)
.ToArray();
case SyncPlayBroadcastType.AllExceptCurrentSession: case SyncPlayBroadcastType.AllExceptCurrentSession:
return Participants.Values.Select( return Participants.Values.Select(
session => session.Session).Where( session => session.Session).Where(