aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <just.one.man@yandex.ru>2020-05-19 15:42:50 +0300
committerVasily <just.one.man@yandex.ru>2020-05-19 15:42:50 +0300
commit2b1ae7ac5834054866aa485b18f85f1793f7b8b4 (patch)
treeb0b632ff11de64086d99dec4de148b0add56c7d0
parent186b7f303cd6f95ca64e020c2838dfe2028ea54c (diff)
Fix code smells
-rw-r--r--Emby.Drawing/NullImageEncoder.cs2
-rw-r--r--MediaBrowser.Controller/Drawing/IImageProcessor.cs15
2 files changed, 9 insertions, 8 deletions
diff --git a/Emby.Drawing/NullImageEncoder.cs b/Emby.Drawing/NullImageEncoder.cs
index fa89b4c63..54de7212a 100644
--- a/Emby.Drawing/NullImageEncoder.cs
+++ b/Emby.Drawing/NullImageEncoder.cs
@@ -44,7 +44,7 @@ namespace Emby.Drawing
}
/// <inheritdoc />
- public string GetImageHash(string inputPath)
+ public string GetImageHash(string path)
{
throw new NotImplementedException();
}
diff --git a/MediaBrowser.Controller/Drawing/IImageProcessor.cs b/MediaBrowser.Controller/Drawing/IImageProcessor.cs
index be5906cbc..e38eaf760 100644
--- a/MediaBrowser.Controller/Drawing/IImageProcessor.cs
+++ b/MediaBrowser.Controller/Drawing/IImageProcessor.cs
@@ -33,13 +33,6 @@ namespace MediaBrowser.Controller.Drawing
ImageDimensions GetImageDimensions(string path);
/// <summary>
- /// Gets the blurhash of the image.
- /// </summary>
- /// <param name="path">Path to the image file.</param>
- /// <returns>BlurHash</returns>
- String GetImageHash(string path);
-
- /// <summary>
/// Gets the dimensions of the image.
/// </summary>
/// <param name="item">The base item.</param>
@@ -48,12 +41,20 @@ namespace MediaBrowser.Controller.Drawing
ImageDimensions GetImageDimensions(BaseItem item, ItemImageInfo info);
/// <summary>
+ /// Gets the blurhash of the image.
+ /// </summary>
+ /// <param name="path">Path to the image file.</param>
+ /// <returns>BlurHash</returns>
+ String GetImageHash(string path);
+
+ /// <summary>
/// Gets the image cache tag.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="image">The image.</param>
/// <returns>Guid.</returns>
string GetImageCacheTag(BaseItem item, ItemImageInfo image);
+
string GetImageCacheTag(BaseItem item, ChapterInfo info);
/// <summary>