update suggestions

This commit is contained in:
Luke Pulverenti 2017-10-13 15:21:43 -04:00
parent 9fdaa039c4
commit 0bc3cdfab7
2 changed files with 3 additions and 1 deletions

View File

@ -3038,8 +3038,8 @@ namespace Emby.Server.Implementations.Data
{
if (orderBy.Count == 0)
{
orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
orderBy.Add(new Tuple<string, SortOrder>("SimilarityScore", SortOrder.Descending));
orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
//orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
}
}

View File

@ -83,6 +83,8 @@ namespace Emby.Server.Implementations.Devices
{
var device = _json.DeserializeFromFile<DeviceInfo>(file);
device.Name = string.IsNullOrWhiteSpace(device.CustomName) ? device.ReportedName : device.CustomName;
SaveDevice(device);
}
catch (Exception ex)