fix for cover art

This commit is contained in:
Luke Pulverenti 2015-10-16 15:25:19 -04:00
parent bb5c5297c5
commit d1195257aa
2 changed files with 12 additions and 0 deletions

View file

@ -375,6 +375,11 @@ namespace Emby.Drawing
return GetImageSize(info.Path, info.DateModified, false);
}
public ImageSize GetImageSize(string path)
{
return GetImageSize(path, _fileSystem.GetLastWriteTimeUtc(path), false);
}
/// <summary>
/// Gets the size of the image.
/// </summary>

View file

@ -32,6 +32,13 @@ namespace MediaBrowser.Controller.Drawing
/// <returns>ImageSize.</returns>
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>
/// Adds the parts.
/// </summary>