add custom collection sort orders to edit page

This commit is contained in:
Luke Pulverenti
2014-01-03 15:32:27 -05:00
parent ede84702d1
commit ecc6fcfbab
12 changed files with 93 additions and 7 deletions

View File

@@ -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)

View 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;

View File

@@ -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)
{