aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-22 08:37:11 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-22 08:37:11 -0400
commit9c56495867f230d359fd495d93e875a601418726 (patch)
tree133f7cef685e208c71281ea405ff926be43d8cde /MediaBrowser.Server.Implementations
parent42deac1dce1303a54d89c85aec54ed1a26112063 (diff)
fixed saving images with double file extension
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Providers/ImageSaver.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
index 331dea402..18e64e414 100644
--- a/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
+++ b/MediaBrowser.Server.Implementations/Providers/ImageSaver.cs
@@ -341,8 +341,6 @@ namespace MediaBrowser.Server.Implementations.Providers
extension = "jpg";
}
- filename += "." + extension.ToLower();
-
string path = null;
if (saveLocally)
@@ -354,10 +352,12 @@ namespace MediaBrowser.Server.Implementations.Providers
if (string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(item.MetaLocation))
{
- path = Path.Combine(item.MetaLocation, filename);
+ path = Path.Combine(item.MetaLocation, filename + extension.ToLower());
}
}
+ filename += "." + extension.ToLower();
+
// None of the save local conditions passed, so store it in our internal folders
if (string.IsNullOrEmpty(path))
{