mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
fixes #941 - Rework password recovery and remove IsLocal checks
This commit is contained in:
@@ -89,5 +89,11 @@ namespace MediaBrowser.Controller.Drawing
|
||||
/// <param name="imageIndex">Index of the image.</param>
|
||||
/// <returns>Task{System.String}.</returns>
|
||||
Task<string> GetEnhancedImage(IHasImages item, ImageType imageType, int imageIndex);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the supported image output formats.
|
||||
/// </summary>
|
||||
/// <returns>ImageOutputFormat[].</returns>
|
||||
ImageOutputFormat[] GetSupportedImageOutputFormats();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Drawing;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
@@ -59,12 +60,7 @@ namespace MediaBrowser.Controller.Drawing
|
||||
|
||||
private bool IsOutputFormatDefault(string originalImagePath)
|
||||
{
|
||||
if (OutputFormat == ImageOutputFormat.Original)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return string.Equals(Path.GetExtension(originalImagePath), "." + OutputFormat);
|
||||
return string.Equals(Path.GetExtension(originalImagePath), "." + OutputFormat, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user