update dlna profiles

This commit is contained in:
Luke Pulverenti
2017-05-31 15:21:32 -04:00
parent d8ec7109ab
commit 5bfcbd4e9e
12 changed files with 78 additions and 10 deletions

View File

@@ -655,7 +655,17 @@ namespace MediaBrowser.Controller.Entities
private string CreateSortNameFromCustomValue(string value)
{
return string.IsNullOrWhiteSpace(value) ? null : ModifySortChunks(value).ToLower();
return string.IsNullOrWhiteSpace(value) ? null : NormalizeCustomSortName(value);
}
protected virtual string NormalizeCustomSortName(string value)
{
if (ConfigurationManager.Configuration.EnableSimpleSortNameHandling)
{
return value.RemoveDiacritics().ToLower();
}
return ModifySortChunks(value).ToLower();
}
public bool IsSortNameDefault(string value)

View File

@@ -101,7 +101,7 @@ namespace MediaBrowser.Controller.LiveTv
}
}
return Number + "-" + (Name ?? string.Empty);
return (Number ?? string.Empty) + "-" + (Name ?? string.Empty);
}
[IgnoreDataMember]

View File

@@ -22,6 +22,8 @@ namespace MediaBrowser.Controller.Net
/// <returns>System.Object.</returns>
object GetResult(object content, string contentType, IDictionary<string,string> responseHeaders = null);
object GetRedirectResult(string url);
/// <summary>
/// Gets the optimized result.
/// </summary>