mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
fix for cover art
This commit is contained in:
parent
bb5c5297c5
commit
d1195257aa
|
@ -375,6 +375,11 @@ namespace Emby.Drawing
|
||||||
return GetImageSize(info.Path, info.DateModified, false);
|
return GetImageSize(info.Path, info.DateModified, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ImageSize GetImageSize(string path)
|
||||||
|
{
|
||||||
|
return GetImageSize(path, _fileSystem.GetLastWriteTimeUtc(path), false);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the size of the image.
|
/// Gets the size of the image.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -32,6 +32,13 @@ namespace MediaBrowser.Controller.Drawing
|
||||||
/// <returns>ImageSize.</returns>
|
/// <returns>ImageSize.</returns>
|
||||||
ImageSize GetImageSize(ItemImageInfo info);
|
ImageSize GetImageSize(ItemImageInfo info);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the size of the image.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="path">The path.</param>
|
||||||
|
/// <returns>ImageSize.</returns>
|
||||||
|
ImageSize GetImageSize(string path);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the parts.
|
/// Adds the parts.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue