The Free Software Media System - Server Backend & API
update suggestions
Luke Pulverenti0bc3cdfab7d1
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex bc4ab8315f..a6c7150daa 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -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));}}diff --git a/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs b/Emby.Server.Implementations/Devices/SqliteDeviceRepository.csindex e8b7466a58..ca0552d98f 100644--- a/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs+++ b/Emby.Server.Implementations/Devices/SqliteDeviceRepository.cs@@ -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)