mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 11:34:43 +01:00
fixed saving images with double file extension
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user