|
|
@ -31,23 +31,6 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
: value.Split(separator);
|
|
|
|
: value.Split(separator);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Splits a comma delimited string and parses Guids.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="value">Input value.</param>
|
|
|
|
|
|
|
|
/// <returns>Parsed Guids.</returns>
|
|
|
|
|
|
|
|
public static Guid[] GetGuids(string value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (value == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return Array.Empty<Guid>();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
|
|
|
|
|
|
|
|
.Select(i => new Guid(i))
|
|
|
|
|
|
|
|
.ToArray();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Checks if the user can update an entry.
|
|
|
|
/// Checks if the user can update an entry.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -104,7 +87,7 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
return Array.Empty<Guid>();
|
|
|
|
return Array.Empty<Guid>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
|
|
|
|
return Split(value, ',', true)
|
|
|
|
.Select(i => new Guid(i))
|
|
|
|
.Select(i => new Guid(i))
|
|
|
|
.ToArray();
|
|
|
|
.ToArray();
|
|
|
|
}
|
|
|
|
}
|
|
|
|