test for empty meta location when saving images

This commit is contained in:
Luke Pulverenti 2013-05-05 01:48:19 -04:00
parent f996336137
commit fc8abe1ac3

View File

@ -754,7 +754,7 @@ namespace MediaBrowser.Api.Images
} }
// Don't save locally if there's no parent (special feature, trailer, etc) // Don't save locally if there's no parent (special feature, trailer, etc)
var saveLocally = !(entity is Audio) && entity.Parent != null; var saveLocally = !(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation);
if (imageType != ImageType.Primary) if (imageType != ImageType.Primary)
{ {