Don't fetch tmdb images if already have them and refresh turned off

This commit is contained in:
Eric Reed 2013-05-14 11:13:57 -04:00
parent 4111343094
commit 21419f7bfa

View File

@ -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);
}