fixed saving images with double file extension

This commit is contained in:
Luke Pulverenti
2013-10-22 08:37:11 -04:00
parent 42deac1dce
commit 9c56495867
5 changed files with 18 additions and 21 deletions

View File

@@ -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))
{