From 21419f7bfab9913f5ee0319ffbf35aa934d1db60 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Tue, 14 May 2013 11:13:57 -0400 Subject: [PATCH] Don't fetch tmdb images if already have them and refresh turned off --- .../Providers/Movies/MovieDbImagesProvider.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MediaBrowser.Controller/Providers/Movies/MovieDbImagesProvider.cs b/MediaBrowser.Controller/Providers/Movies/MovieDbImagesProvider.cs index 2f1057033..0b76afbc3 100644 --- a/MediaBrowser.Controller/Providers/Movies/MovieDbImagesProvider.cs +++ b/MediaBrowser.Controller/Providers/Movies/MovieDbImagesProvider.cs @@ -151,6 +151,13 @@ namespace MediaBrowser.Controller.Providers.Movies { return true; } + + // Don't refresh if we already have both poster and backdrop and we're not refreshing images + if (item.LocationType == LocationType.FileSystem && !ConfigurationManager.Configuration.RefreshItemImages + && item.HasLocalImage("folder") && item.HasLocalImage("backdrop")) + { + return false; + } return base.NeedsRefreshInternal(item, providerInfo); }