diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-11-09 14:00:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-09 14:00:13 -0700 |
| commit | c7a94d48ae019f41d5f06340bca7efe0788ad5ad (patch) | |
| tree | aa7ade175cb8163e32f5a159efe7613bd2b1254d /Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs | |
| parent | 21878577beefc9b71f21c64e26162daaa083ded2 (diff) | |
Convert ItemSortBy to enum (#9765)
* Convert ItemSortBy to enum
* Rename Unknown to Default
Diffstat (limited to 'Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs')
| -rw-r--r-- | Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs index 5cb11ab46..9e02ea2ae 100644 --- a/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs +++ b/Emby.Server.Implementations/Sorting/CommunityRatingComparer.cs @@ -1,6 +1,7 @@ #pragma warning disable CS1591 using System; +using Jellyfin.Data.Enums; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Sorting; using MediaBrowser.Model.Querying; @@ -13,7 +14,7 @@ namespace Emby.Server.Implementations.Sorting /// Gets the name. /// </summary> /// <value>The name.</value> - public string Name => ItemSortBy.CommunityRating; + public ItemSortBy Type => ItemSortBy.CommunityRating; /// <summary> /// Compares the specified x. |
