diff --git a/MediaBrowser.Providers/TV/RemoteSeasonProvider.cs b/MediaBrowser.Providers/TV/RemoteSeasonProvider.cs
index 513349db7..179354c08 100644
--- a/MediaBrowser.Providers/TV/RemoteSeasonProvider.cs
+++ b/MediaBrowser.Providers/TV/RemoteSeasonProvider.cs
@@ -1,18 +1,17 @@
-using System.Net;
-using MediaBrowser.Common.Extensions;
-using MediaBrowser.Controller.Configuration;
+using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
+using MediaBrowser.Model.Net;
using System;
using System.IO;
+using System.Net;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
-using MediaBrowser.Model.Net;
namespace MediaBrowser.Providers.TV
{
@@ -95,28 +94,7 @@ namespace MediaBrowser.Providers.TV
}
}
- ///
- /// Needses the refresh internal.
- ///
- /// The item.
- /// The provider info.
- /// true if XXXX, false otherwise
- protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
- {
- if (GetComparisonData(item) != providerInfo.Data)
- {
- return true;
- }
-
- return base.NeedsRefreshInternal(item, providerInfo);
- }
-
- ///
- /// Gets the comparison data.
- ///
- /// The item.
- /// Guid.
- private Guid GetComparisonData(BaseItem item)
+ protected override DateTime CompareDate(BaseItem item)
{
var season = (Season)item;
var seriesId = season.Series != null ? season.Series.GetProviderId(MetadataProviders.Tvdb) : null;
@@ -128,24 +106,13 @@ namespace MediaBrowser.Providers.TV
var imagesFileInfo = new FileInfo(imagesXmlPath);
- return GetComparisonData(imagesFileInfo);
+ if (imagesFileInfo.Exists)
+ {
+ return imagesFileInfo.LastWriteTimeUtc;
+ }
}
-
- return Guid.Empty;
- }
-
- ///
- /// Gets the comparison data.
- ///
- /// The images file info.
- /// Guid.
- private Guid GetComparisonData(FileInfo imagesFileInfo)
- {
- var date = imagesFileInfo.Exists ? imagesFileInfo.LastWriteTimeUtc : DateTime.MinValue;
-
- var key = date.Ticks + imagesFileInfo.FullName;
-
- return key.GetMD5();
+
+ return base.CompareDate(item);
}
///
@@ -181,15 +148,6 @@ namespace MediaBrowser.Providers.TV
}
}
- BaseProviderInfo data;
- if (!item.ProviderData.TryGetValue(Id, out data))
- {
- data = new BaseProviderInfo();
- item.ProviderData[Id] = data;
- }
-
- data.Data = GetComparisonData(imagesFileInfo);
-
SetLastRefreshed(item, DateTime.UtcNow);
return true;
}