mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
update to servicestack 3.9.56
This commit is contained in:
@@ -61,7 +61,17 @@ namespace MediaBrowser.Api
|
||||
return new ItemFields[] { };
|
||||
}
|
||||
|
||||
return val.Split(',').Select(v => (ItemFields)Enum.Parse(typeof(ItemFields), v, true));
|
||||
return val.Split(',').Select(v =>
|
||||
{
|
||||
ItemFields value;
|
||||
|
||||
if (Enum.TryParse(v, true, out value))
|
||||
{
|
||||
return (ItemFields?)value;
|
||||
}
|
||||
return null;
|
||||
|
||||
}).Where(i => i.HasValue).Select(i => i.Value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user