mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-01 04:34:26 -04:00
Merge branch '4214-supported-commands-enum' of https://github.com/skyfrk/jellyfin into 4214-supported-commands-enum
This commit is contained in:
commit
c3e7eb3a6f
@ -392,7 +392,7 @@ namespace Jellyfin.Api.Controllers
|
|||||||
_sessionManager.ReportCapabilities(id, new ClientCapabilities
|
_sessionManager.ReportCapabilities(id, new ClientCapabilities
|
||||||
{
|
{
|
||||||
PlayableMediaTypes = RequestHelpers.Split(playableMediaTypes, ',', true),
|
PlayableMediaTypes = RequestHelpers.Split(playableMediaTypes, ',', true),
|
||||||
SupportedCommands = supportedCommands == null ? Array.Empty<GeneralCommandType>() : supportedCommands,
|
SupportedCommands = supportedCommands,
|
||||||
SupportsMediaControl = supportsMediaControl,
|
SupportsMediaControl = supportsMediaControl,
|
||||||
SupportsSync = supportsSync,
|
SupportsSync = supportsSync,
|
||||||
SupportsPersistentIdentifier = supportsPersistentIdentifier
|
SupportsPersistentIdentifier = supportsPersistentIdentifier
|
||||||
|
@ -39,7 +39,7 @@ namespace Jellyfin.Api.ModelBinders
|
|||||||
{
|
{
|
||||||
var values = Array.ConvertAll(
|
var values = Array.ConvertAll(
|
||||||
value.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries),
|
value.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries),
|
||||||
x => { return converter.ConvertFromString(x != null ? x.Trim() : x); });
|
x => converter.ConvertFromString(x?.Trim()));
|
||||||
|
|
||||||
var typedValues = Array.CreateInstance(elementType, values.Length);
|
var typedValues = Array.CreateInstance(elementType, values.Length);
|
||||||
values.CopyTo(typedValues, 0);
|
values.CopyTo(typedValues, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user