aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-08 11:45:35 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-08 11:45:35 -0500
commitad0ec704331474dee41524f52ab7d0d88ca556a4 (patch)
tree468f8e42e6cde6c03c7fcde741adf81432acbd66 /MediaBrowser.Controller/Entities/BaseItem.cs
parentdbf6081a9b5eb80cc96e0551e5631e2b1890a14c (diff)
removed IsRecentlyPlayed option and fixed FileTime warnings
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index f90044d8b..cc3ec5c2a 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -1005,29 +1005,6 @@ namespace MediaBrowser.Controller.Entities
}
/// <summary>
- /// Determines if the item is considered recently played on user settings
- /// </summary>
- /// <param name="user">The user.</param>
- /// <returns><c>true</c> if [is recently played] [the specified user]; otherwise, <c>false</c>.</returns>
- /// <exception cref="System.ArgumentNullException"></exception>
- public bool IsRecentlyPlayed(User user)
- {
- if (user == null)
- {
- throw new ArgumentNullException();
- }
-
- var data = GetUserData(user, false);
-
- if (data == null || data.LastPlayedDate == null || data.PlayCount == 0)
- {
- return false;
- }
-
- return (DateTime.UtcNow - data.LastPlayedDate.Value).TotalDays < ConfigurationManager.Configuration.RecentlyPlayedDays;
- }
-
- /// <summary>
/// Adds people to the item
/// </summary>
/// <param name="people">The people.</param>