aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-22 21:11:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-22 21:11:56 -0400
commit77cff18dce6f07aa46d2f0d89fb444cd95203134 (patch)
treeef852af21afb448d9ad3ccc67180d94149ac99a6 /MediaBrowser.Server.Implementations
parentc997effcb1ed7a88c6250a3002de663fca33ce60 (diff)
fix images saving with incorrect paths.
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Providers/ImageSaver.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
index 711b3f77c..a967c535e 100644
--- a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
+++ b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
@@ -362,6 +362,8 @@ namespace MediaBrowser.Server.Implementations.Providers
extension = "jpg";
}
+ extension = "." + extension.ToLower();
+
string path = null;
if (saveLocally)
@@ -373,16 +375,14 @@ namespace MediaBrowser.Server.Implementations.Providers
if (string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(item.MetaLocation))
{
- path = Path.Combine(item.MetaLocation, filename + extension.ToLower());
+ path = Path.Combine(item.MetaLocation, filename + extension);
}
}
- filename += "." + extension.ToLower();
-
// None of the save local conditions passed, so store it in our internal folders
if (string.IsNullOrEmpty(path))
{
- path = _remoteImageCache.GetResourcePath(item.GetType().FullName + item.Id, filename);
+ path = _remoteImageCache.GetResourcePath(item.GetType().FullName + item.Id, filename + extension);
}
return path;