mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
reduce requests when images already exist
This commit is contained in:
parent
5d4bea674f
commit
5b280de519
@ -129,6 +129,16 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||
return false;
|
||||
}
|
||||
|
||||
if (item.HasImage(ImageType.Art) &&
|
||||
item.HasImage(ImageType.Logo) &&
|
||||
item.HasImage(ImageType.Disc) &&
|
||||
item.HasImage(ImageType.Banner) &&
|
||||
item.HasImage(ImageType.Thumb) &&
|
||||
item.BackdropImagePaths.Count > 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Refresh if tmdb id has changed
|
||||
if (providerInfo.Data != GetComparisonData(item.GetProviderId(MetadataProviders.Tmdb)))
|
||||
{
|
||||
|
@ -153,7 +153,7 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||
}
|
||||
|
||||
// Don't refresh if we already have both poster and backdrop and we're not refreshing images
|
||||
if (!ConfigurationManager.Configuration.RefreshItemImages && item.HasImage(ImageType.Primary) && item.BackdropImagePaths.Count > 0)
|
||||
if (item.HasImage(ImageType.Primary) && item.BackdropImagePaths.Count > 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
!ConfigurationManager.Configuration.DownloadMusicArtistImages.Logo &&
|
||||
!ConfigurationManager.Configuration.DownloadMusicArtistImages.Primary &&
|
||||
|
||||
// The fanart album provider depends on xml downloaded here, so honor it's settings too
|
||||
// The fanart album provider depends on xml downloaded here, so honor it's settings too
|
||||
!ConfigurationManager.Configuration.DownloadMusicAlbumImages.Disc &&
|
||||
!ConfigurationManager.Configuration.DownloadMusicAlbumImages.Primary)
|
||||
{
|
||||
|
@ -70,6 +70,15 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
return false;
|
||||
}
|
||||
|
||||
if (item.HasImage(ImageType.Art) &&
|
||||
item.HasImage(ImageType.Logo) &&
|
||||
item.HasImage(ImageType.Banner) &&
|
||||
item.HasImage(ImageType.Thumb) &&
|
||||
item.BackdropImagePaths.Count > 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (providerInfo.Data != GetComparisonData(item.GetProviderId(MetadataProviders.Tvdb)))
|
||||
{
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user