mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
update sync objects
This commit is contained in:
@@ -17,6 +17,9 @@ namespace MediaBrowser.Api.Devices
|
||||
{
|
||||
[ApiMember(Name = "SupportsContentUploading", Description = "SupportsContentUploading", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||
public bool? SupportsContentUploading { get; set; }
|
||||
|
||||
[ApiMember(Name = "SupportsDeviceId", Description = "SupportsDeviceId", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||
public bool? SupportsDeviceId { get; set; }
|
||||
}
|
||||
|
||||
[Route("/Devices", "DELETE", Summary = "Deletes a device")]
|
||||
@@ -118,6 +121,13 @@ namespace MediaBrowser.Api.Devices
|
||||
devices = devices.Where(i => _deviceManager.GetCapabilities(i.Id).SupportsContentUploading == val);
|
||||
}
|
||||
|
||||
if (request.SupportsDeviceId.HasValue)
|
||||
{
|
||||
var val = request.SupportsDeviceId.Value;
|
||||
|
||||
devices = devices.Where(i => _deviceManager.GetCapabilities(i.Id).SupportsDeviceId == val);
|
||||
}
|
||||
|
||||
return ToOptimizedResult(devices.ToList());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user