mirror of https://github.com/jellyfin/jellyfin.git
update suggestions
This commit is contained in:
parent
9fdaa039c4
commit
0bc3cdfab7
|
@ -3038,8 +3038,8 @@ namespace Emby.Server.Implementations.Data
|
||||||
{
|
{
|
||||||
if (orderBy.Count == 0)
|
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>("SimilarityScore", SortOrder.Descending));
|
||||||
|
orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
|
||||||
//orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
|
//orderBy.Add(new Tuple<string, SortOrder>(ItemSortBy.Random, SortOrder.Ascending));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,6 +83,8 @@ namespace Emby.Server.Implementations.Devices
|
||||||
{
|
{
|
||||||
var device = _json.DeserializeFromFile<DeviceInfo>(file);
|
var device = _json.DeserializeFromFile<DeviceInfo>(file);
|
||||||
|
|
||||||
|
device.Name = string.IsNullOrWhiteSpace(device.CustomName) ? device.ReportedName : device.CustomName;
|
||||||
|
|
||||||
SaveDevice(device);
|
SaveDevice(device);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in New Issue