|
|
|
@ -765,7 +765,7 @@ namespace MediaBrowser.Api.Images
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Don't save locally if there's no parent (special feature, trailer, etc)
|
|
|
|
|
var saveLocally = (!(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation)) || entity is User;
|
|
|
|
|
var saveLocally = !(entity is Audio) && entity.Parent != null && !string.IsNullOrEmpty(entity.MetaLocation) || entity is User;
|
|
|
|
|
|
|
|
|
|
if (imageType != ImageType.Primary)
|
|
|
|
|
{
|
|
|
|
@ -775,6 +775,11 @@ namespace MediaBrowser.Api.Images
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (entity.LocationType != LocationType.FileSystem)
|
|
|
|
|
{
|
|
|
|
|
saveLocally = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var imagePath = _providerManager.GetSavePath(entity, filename + "." + extension, saveLocally);
|
|
|
|
|
|
|
|
|
|
// Save to file system
|
|
|
|
|