|
|
|
@ -182,13 +182,10 @@ namespace MediaBrowser.Api.SyncPlay
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Both null and empty strings mean that client isn't playing anything
|
|
|
|
|
if (!String.IsNullOrEmpty(request.PlayingItemId))
|
|
|
|
|
if (!String.IsNullOrEmpty(request.PlayingItemId) && !Guid.TryParse(request.PlayingItemId, out playingItemId))
|
|
|
|
|
{
|
|
|
|
|
if (!Guid.TryParse(request.PlayingItemId, out playingItemId))
|
|
|
|
|
{
|
|
|
|
|
Logger.LogError("JoinGroup: {0} is not a valid format for PlayingItemId. Ignoring request.", request.PlayingItemId);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Logger.LogError("JoinGroup: {0} is not a valid format for PlayingItemId. Ignoring request.", request.PlayingItemId);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var joinRequest = new JoinGroupRequest()
|
|
|
|
@ -220,12 +217,9 @@ namespace MediaBrowser.Api.SyncPlay
|
|
|
|
|
var currentSession = GetSession(_sessionContext);
|
|
|
|
|
var filterItemId = Guid.Empty;
|
|
|
|
|
|
|
|
|
|
if (!String.IsNullOrEmpty(request.FilterItemId))
|
|
|
|
|
if (!String.IsNullOrEmpty(request.FilterItemId) && !Guid.TryParse(request.FilterItemId, out filterItemId))
|
|
|
|
|
{
|
|
|
|
|
if (!Guid.TryParse(request.FilterItemId, out filterItemId))
|
|
|
|
|
{
|
|
|
|
|
Logger.LogWarning("ListGroups: {0} is not a valid format for FilterItemId. Ignoring filter.", request.FilterItemId);
|
|
|
|
|
}
|
|
|
|
|
Logger.LogWarning("ListGroups: {0} is not a valid format for FilterItemId. Ignoring filter.", request.FilterItemId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return _syncPlayManager.ListGroups(currentSession, filterItemId);
|
|
|
|
|