aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-07 11:48:23 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-07 11:48:23 -0500
commit01f1ed05b9a401939ccbd586e07951c144232608 (patch)
tree15f4a7edd9696a311b9afcf8ae53631542b84a12 /MediaBrowser.Server.Implementations
parent2fc662c9e9e5bc0730c37ef88eb3ff8476b301db (diff)
remove need to pass in image index when adding backdrops
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Providers/ImageSaver.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
index dfbf0736b..0ed46e761 100644
--- a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
+++ b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
@@ -70,6 +70,15 @@ namespace MediaBrowser.Server.Implementations.Providers
throw new ArgumentNullException("mimeType");
}
+ if (type == ImageType.Backdrop && imageIndex == null)
+ {
+ imageIndex = item.BackdropImagePaths.Count;
+ }
+ else if (type == ImageType.Screenshot && imageIndex == null)
+ {
+ imageIndex = item.ScreenshotImagePaths.Count;
+ }
+
var saveLocally = _config.Configuration.SaveLocalMeta && item.Parent != null && !(item is Audio);
if (item is IItemByName || item is User)