mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
fix custom library order
This commit is contained in:
parent
80ff564143
commit
020fe37dfe
@ -139,13 +139,13 @@ namespace Emby.Server.Implementations.Library
|
|||||||
return list
|
return list
|
||||||
.OrderBy(i =>
|
.OrderBy(i =>
|
||||||
{
|
{
|
||||||
var index = orders.IndexOf(i.Id.ToString("N", CultureInfo.InvariantCulture));
|
var index = orders.IndexOf(i.Id.ToString("D", CultureInfo.InvariantCulture));
|
||||||
|
|
||||||
if (index == -1
|
if (index == -1
|
||||||
&& i is UserView view
|
&& i is UserView view
|
||||||
&& view.DisplayParentId != Guid.Empty)
|
&& view.DisplayParentId != Guid.Empty)
|
||||||
{
|
{
|
||||||
index = orders.IndexOf(view.DisplayParentId.ToString("N", CultureInfo.InvariantCulture));
|
index = orders.IndexOf(view.DisplayParentId.ToString("D", CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
|
|
||||||
return index == -1 ? int.MaxValue : index;
|
return index == -1 ? int.MaxValue : index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user