Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/dbea7cac674b9dca0a4e9bd26cac9e3838007b65 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Use Enum.GetValues<T>()

pull/7325/head
Cody Robibero 3 years ago
parent bbd5d11d3b
commit dbea7cac67

@ -9,9 +9,9 @@ namespace Jellyfin.Extensions.Json.Converters;
/// </summary>
/// <typeparam name="T">The type of enum.</typeparam>
public class JsonFlagEnumConverter<T> : JsonConverter<T>
where T : Enum
where T : struct, Enum
{
private static readonly T[] _enumValues = (T[])Enum.GetValues(typeof(T));
private static readonly T[] _enumValues = Enum.GetValues<T>();
/// <inheritdoc />
public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Loading…
Cancel
Save