aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Channels
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2019-12-10 22:28:44 +0900
committerGitHub <noreply@github.com>2019-12-10 22:28:44 +0900
commitdee3076eaf331a8e3e4b220c34491f713914fbc0 (patch)
tree0f604975ad10de0f6e66234c5f1a36a21c113ea8 /Emby.Server.Implementations/Channels
parentb5d0bd0d764982c8df2c341c1f38c4d0636409c3 (diff)
parenta2c35e6dba02f068a3f06e5a4e4964e6539069d1 (diff)
Merge pull request #1923 from Bond-009/random
Don't shuffle some types by default
Diffstat (limited to 'Emby.Server.Implementations/Channels')
-rw-r--r--Emby.Server.Implementations/Channels/ChannelManager.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelManager.cs b/Emby.Server.Implementations/Channels/ChannelManager.cs
index 151670074..8e955f1b0 100644
--- a/Emby.Server.Implementations/Channels/ChannelManager.cs
+++ b/Emby.Server.Implementations/Channels/ChannelManager.cs
@@ -510,7 +510,7 @@ namespace Emby.Server.Implementations.Channels
return _libraryManager.GetItemIds(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Channel).Name },
- OrderBy = new ValueTuple<string, SortOrder>[] { new ValueTuple<string, SortOrder>(ItemSortBy.SortName, SortOrder.Ascending) }
+ OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) }
}).Select(i => GetChannelFeatures(i.ToString("N", CultureInfo.InvariantCulture))).ToArray();
}
@@ -618,16 +618,16 @@ namespace Emby.Server.Implementations.Channels
{
query.OrderBy = new[]
{
- new ValueTuple<string, SortOrder>(ItemSortBy.PremiereDate, SortOrder.Descending),
- new ValueTuple<string, SortOrder>(ItemSortBy.ProductionYear, SortOrder.Descending),
- new ValueTuple<string, SortOrder>(ItemSortBy.DateCreated, SortOrder.Descending)
+ (ItemSortBy.PremiereDate, SortOrder.Descending),
+ (ItemSortBy.ProductionYear, SortOrder.Descending),
+ (ItemSortBy.DateCreated, SortOrder.Descending)
};
}
else
{
query.OrderBy = new[]
{
- new ValueTuple<string, SortOrder>(ItemSortBy.DateCreated, SortOrder.Descending)
+ (ItemSortBy.DateCreated, SortOrder.Descending)
};
}