removed IsRecentlyPlayed option and fixed FileTime warnings

This commit is contained in:
LukePulverenti
2013-03-08 11:45:35 -05:00
parent dbf6081a9b
commit ad0ec70433
5 changed files with 4 additions and 41 deletions

View File

@@ -1004,29 +1004,6 @@ namespace MediaBrowser.Controller.Entities
return (DateTime.UtcNow - DateCreated).TotalDays < ConfigurationManager.Configuration.RecentItemDays;
}
/// <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>