aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Images/ImageService.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-05-18 18:18:41 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-05-18 18:18:41 -0400
commit00449ff66dbbaba9901c47c65070868ca111ac45 (patch)
tree14980d9711cbcc5d5d92a02031715d8f79b0eaf8 /MediaBrowser.Api/Images/ImageService.cs
parent584641a6f43fee18f65dc9c8abd24b88742922ce (diff)
parent407016a30702694e39505afbb599791ed7c2dcfe (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Api/Images/ImageService.cs')
-rw-r--r--MediaBrowser.Api/Images/ImageService.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Images/ImageService.cs b/MediaBrowser.Api/Images/ImageService.cs
index 3f5b9da2a..51608a899 100644
--- a/MediaBrowser.Api/Images/ImageService.cs
+++ b/MediaBrowser.Api/Images/ImageService.cs
@@ -361,7 +361,7 @@ namespace MediaBrowser.Api.Images
index++;
}
-
+
index = 0;
foreach (var image in item.ScreenshotImagePaths)
@@ -422,7 +422,7 @@ namespace MediaBrowser.Api.Images
return list;
}
-
+
/// <summary>
/// Gets the specified request.
/// </summary>
@@ -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