diff --git a/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs b/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs index ea806c27f..f092decdf 100644 --- a/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbImagesProvider.cs @@ -134,12 +134,6 @@ namespace MediaBrowser.Providers.Movies return false; } - // Refresh if tmdb id has changed - if (providerInfo.Data != GetComparisonData(item.GetProviderId(MetadataProviders.Tmdb))) - { - return true; - } - // Don't refresh if we already have both poster and backdrop and we're not refreshing images if (item.HasImage(ImageType.Primary) && item.BackdropImagePaths.Count > 0) { @@ -170,21 +164,10 @@ namespace MediaBrowser.Providers.Movies var status = await ProcessImages(item, images, cancellationToken).ConfigureAwait(false); - data.Data = GetComparisonData(item.GetProviderId(MetadataProviders.Tmdb)); - SetLastRefreshed(item, DateTime.UtcNow, status); return true; } - /// - /// Gets the comparison data. - /// - /// Guid. - private Guid GetComparisonData(string id) - { - return string.IsNullOrEmpty(id) ? Guid.Empty : id.GetMD5(); - } - /// /// Fetches the images. /// diff --git a/MediaBrowser.Providers/Movies/OpenMovieDatabaseProvider.cs b/MediaBrowser.Providers/Movies/OpenMovieDatabaseProvider.cs index 1507cf427..c88169c80 100644 --- a/MediaBrowser.Providers/Movies/OpenMovieDatabaseProvider.cs +++ b/MediaBrowser.Providers/Movies/OpenMovieDatabaseProvider.cs @@ -91,16 +91,6 @@ namespace MediaBrowser.Providers.Movies return item is Movie || item is MusicVideo; } - /// - /// Gets the comparison data. - /// - /// The imdb id. - /// Guid. - private Guid GetComparisonData(string imdbId) - { - return string.IsNullOrEmpty(imdbId) ? Guid.Empty : imdbId.GetMD5(); - } - /// /// Gets the priority. /// @@ -114,23 +104,6 @@ namespace MediaBrowser.Providers.Movies } } - /// - /// Needses the refresh internal. - /// - /// The item. - /// The provider info. - /// true if XXXX, false otherwise - protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo) - { - // Refresh if imdb id has changed - if (providerInfo.Data != GetComparisonData(item.GetProviderId(MetadataProviders.Imdb))) - { - return true; - } - - return base.NeedsRefreshInternal(item, providerInfo); - } - protected readonly CultureInfo UsCulture = new CultureInfo("en-US"); public override async Task FetchAsync(BaseItem item, bool force, CancellationToken cancellationToken) @@ -147,7 +120,6 @@ namespace MediaBrowser.Providers.Movies if (string.IsNullOrEmpty(imdbId)) { - data.Data = GetComparisonData(imdbId); data.LastRefreshStatus = ProviderRefreshStatus.Success; return true; } @@ -181,7 +153,6 @@ namespace MediaBrowser.Providers.Movies } } - data.Data = GetComparisonData(item.GetProviderId(MetadataProviders.Imdb)); data.LastRefreshStatus = ProviderRefreshStatus.Success; SetLastRefreshed(item, DateTime.UtcNow);