mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 03:18:27 +01:00
add custom collection sort orders to edit page
This commit is contained in:
@@ -60,7 +60,11 @@ namespace MediaBrowser.Providers.ImagesByName
|
||||
|
||||
private static string GetComparableName(string name)
|
||||
{
|
||||
return name.Replace(" ", string.Empty).Replace(".", string.Empty).Replace("&", string.Empty).Replace("!", string.Empty);
|
||||
return name.Replace(" ", string.Empty)
|
||||
.Replace(".", string.Empty)
|
||||
.Replace("&", string.Empty)
|
||||
.Replace("!", string.Empty)
|
||||
.Replace(",", string.Empty);
|
||||
}
|
||||
|
||||
public static IEnumerable<string> GetAvailableImages(string file)
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.Movies;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Providers.Movies;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace MediaBrowser.Providers.Savers
|
||||
"CriticRating",
|
||||
"CriticRatingSummary",
|
||||
"DeathDate",
|
||||
"DisplayOrder",
|
||||
"EndDate",
|
||||
"Genres",
|
||||
"Genre",
|
||||
@@ -284,6 +285,12 @@ namespace MediaBrowser.Providers.Savers
|
||||
}
|
||||
}
|
||||
|
||||
var hasDisplayOrder = item as IHasDisplayOrder;
|
||||
if (hasDisplayOrder != null && !string.IsNullOrEmpty(hasDisplayOrder.DisplayOrder))
|
||||
{
|
||||
builder.Append("<DisplayOrder>" + SecurityElement.Escape(hasDisplayOrder.DisplayOrder) + "</DisplayOrder>");
|
||||
}
|
||||
|
||||
var hasBudget = item as IHasBudget;
|
||||
if (hasBudget != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user