diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-04-30 18:05:13 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-04-30 18:05:13 -0400 |
| commit | 1f9d32afc52e9bd133ddf22d12bdc468adaf9ebe (patch) | |
| tree | e3dd3c3c897d4f534a5e9d19ef7f0c13f56b6780 /MediaBrowser.Server.Implementations/Sorting | |
| parent | d75cc21d37cfa3b1ce2ad9dc4c26de41286f35f8 (diff) | |
limit use of GetUserDataKey
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sorting')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Sorting/DatePlayedComparer.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Server.Implementations/Sorting/PlayCountComparer.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Sorting/DatePlayedComparer.cs b/MediaBrowser.Server.Implementations/Sorting/DatePlayedComparer.cs index c881591be..3edf23020 100644 --- a/MediaBrowser.Server.Implementations/Sorting/DatePlayedComparer.cs +++ b/MediaBrowser.Server.Implementations/Sorting/DatePlayedComparer.cs @@ -47,7 +47,7 @@ namespace MediaBrowser.Server.Implementations.Sorting /// <returns>DateTime.</returns> private DateTime GetDate(BaseItem x) { - var userdata = UserDataRepository.GetUserData(User.Id, x.GetUserDataKey()); + var userdata = UserDataRepository.GetUserData(User, x); if (userdata != null && userdata.LastPlayedDate.HasValue) { diff --git a/MediaBrowser.Server.Implementations/Sorting/PlayCountComparer.cs b/MediaBrowser.Server.Implementations/Sorting/PlayCountComparer.cs index 1bc5261b4..8b14efffc 100644 --- a/MediaBrowser.Server.Implementations/Sorting/PlayCountComparer.cs +++ b/MediaBrowser.Server.Implementations/Sorting/PlayCountComparer.cs @@ -34,7 +34,7 @@ namespace MediaBrowser.Server.Implementations.Sorting /// <returns>DateTime.</returns> private int GetValue(BaseItem x) { - var userdata = UserDataRepository.GetUserData(User.Id, x.GetUserDataKey()); + var userdata = UserDataRepository.GetUserData(User, x); return userdata == null ? 0 : userdata.PlayCount; } |
