make sure providers are trying again when appropiate

This commit is contained in:
Luke Pulverenti
2013-05-19 15:37:52 -04:00
parent 25314e1fc9
commit 2bd2a7bc68
14 changed files with 186 additions and 523 deletions

View File

@@ -62,23 +62,15 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
}
/// <summary>
/// Needses the refresh internal.
/// Gets a value indicating whether [refresh on version change].
/// </summary>
/// <param name="item">The item.</param>
/// <param name="providerInfo">The provider info.</param>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
/// <value><c>true</c> if [refresh on version change]; otherwise, <c>false</c>.</value>
protected override bool RefreshOnVersionChange
{
// If the last run wasn't successful, try again when there's a new version of ffmpeg
if (providerInfo.LastRefreshStatus != ProviderRefreshStatus.Success)
get
{
if (!string.Equals(ProviderVersion, providerInfo.ProviderVersion))
{
return true;
}
return true;
}
return base.NeedsRefreshInternal(item, providerInfo);
}
}
}