update offline detection

This commit is contained in:
Luke Pulverenti
2017-01-10 15:44:02 -05:00
parent 911e5cb490
commit 12f20de68b
3 changed files with 23 additions and 40 deletions

View File

@@ -272,9 +272,6 @@ namespace MediaBrowser.Controller.Entities
[IgnoreDataMember]
public virtual string Path { get; set; }
[IgnoreDataMember]
public bool IsOffline { get; set; }
[IgnoreDataMember]
public virtual SourceType SourceType { get; set; }
@@ -339,20 +336,6 @@ namespace MediaBrowser.Controller.Entities
}
}
public Task UpdateIsOffline(bool newValue)
{
var item = this;
if (item.IsOffline != newValue)
{
item.IsOffline = newValue;
// this is creating too many repeated db updates
//return item.UpdateToRepository(ItemUpdateType.None, CancellationToken.None);
}
return Task.FromResult(true);
}
/// <summary>
/// Gets or sets the type of the location.
/// </summary>