From 49c6a99e00d5bef49c4154a5a9500f39b84cc32e Mon Sep 17 00:00:00 2001 From: Tim Eisele Date: Fri, 9 May 2025 16:35:29 +0200 Subject: Cleanup external item data cleanup (#14072) --- Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs | 6 +++--- Emby.Server.Implementations/Sorting/DatePlayedComparer.cs | 8 ++++---- Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs | 6 +++--- Emby.Server.Implementations/Sorting/IsPlayedComparer.cs | 6 +++--- Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs | 6 +++--- Emby.Server.Implementations/Sorting/PlayCountComparer.cs | 8 ++++---- 6 files changed, 20 insertions(+), 20 deletions(-) (limited to 'Emby.Server.Implementations/Sorting') diff --git a/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs b/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs index 9afc51108..f10e7fcbb 100644 --- a/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs +++ b/Emby.Server.Implementations/Sorting/DateLastMediaAddedComparer.cs @@ -26,10 +26,10 @@ namespace Emby.Server.Implementations.Sorting public IUserManager UserManager { get; set; } /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets the name. diff --git a/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs b/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs index 4c013a8bd..2c8e2b37d 100644 --- a/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs +++ b/Emby.Server.Implementations/Sorting/DatePlayedComparer.cs @@ -28,10 +28,10 @@ namespace Emby.Server.Implementations.Sorting public IUserManager UserManager { get; set; } /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets the name. @@ -57,7 +57,7 @@ namespace Emby.Server.Implementations.Sorting /// DateTime. private DateTime GetDate(BaseItem x) { - var userdata = UserDataRepository.GetUserData(User, x); + var userdata = UserDataManager.GetUserData(User, x); if (userdata is not null && userdata.LastPlayedDate.HasValue) { diff --git a/Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs b/Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs index cf7786167..01c1e596f 100644 --- a/Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs +++ b/Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs @@ -25,10 +25,10 @@ namespace Emby.Server.Implementations.Sorting public ItemSortBy Type => ItemSortBy.IsFavoriteOrLiked; /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets or sets the user manager. diff --git a/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs b/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs index e42c8a33a..6f206c877 100644 --- a/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs +++ b/Emby.Server.Implementations/Sorting/IsPlayedComparer.cs @@ -26,10 +26,10 @@ namespace Emby.Server.Implementations.Sorting public ItemSortBy Type => ItemSortBy.IsUnplayed; /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets or sets the user manager. diff --git a/Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs b/Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs index f54188030..fd1326327 100644 --- a/Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs +++ b/Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs @@ -26,10 +26,10 @@ namespace Emby.Server.Implementations.Sorting public ItemSortBy Type => ItemSortBy.IsUnplayed; /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets or sets the user manager. diff --git a/Emby.Server.Implementations/Sorting/PlayCountComparer.cs b/Emby.Server.Implementations/Sorting/PlayCountComparer.cs index dd2149b57..26e28b03b 100644 --- a/Emby.Server.Implementations/Sorting/PlayCountComparer.cs +++ b/Emby.Server.Implementations/Sorting/PlayCountComparer.cs @@ -27,10 +27,10 @@ namespace Emby.Server.Implementations.Sorting public ItemSortBy Type => ItemSortBy.PlayCount; /// - /// Gets or sets the user data repository. + /// Gets or sets the user data manager. /// - /// The user data repository. - public IUserDataManager UserDataRepository { get; set; } + /// The user data manager. + public IUserDataManager UserDataManager { get; set; } /// /// Gets or sets the user manager. @@ -56,7 +56,7 @@ namespace Emby.Server.Implementations.Sorting /// DateTime. private int GetValue(BaseItem x) { - var userdata = UserDataRepository.GetUserData(User, x); + var userdata = UserDataManager.GetUserData(User, x); return userdata is null ? 0 : userdata.PlayCount; } -- cgit v1.2.3