3.0.5768.2
This commit is contained in:
parent
8f5609df3a
commit
5ecf69503b
|
@ -312,19 +312,22 @@ namespace MediaBrowser.Api.Images
|
|||
{
|
||||
try
|
||||
{
|
||||
var fileInfo = new FileInfo(info.Path);
|
||||
|
||||
int? width = null;
|
||||
int? height = null;
|
||||
long length = 0;
|
||||
|
||||
try
|
||||
{
|
||||
if (info.IsLocalFile)
|
||||
{
|
||||
var fileInfo = new FileInfo(info.Path);
|
||||
length = fileInfo.Length;
|
||||
|
||||
var size = _imageProcessor.GetImageSize(info);
|
||||
|
||||
width = Convert.ToInt32(size.Width);
|
||||
height = Convert.ToInt32(size.Height);
|
||||
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
@ -337,7 +340,7 @@ namespace MediaBrowser.Api.Images
|
|||
ImageIndex = imageIndex,
|
||||
ImageType = info.Type,
|
||||
ImageTag = _imageProcessor.GetImageCacheTag(item, info),
|
||||
Size = fileInfo.Length,
|
||||
Size = length,
|
||||
Width = width,
|
||||
Height = height
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.0.*")]
|
||||
//[assembly: AssemblyVersion("3.0.5768.1")]
|
||||
//[assembly: AssemblyVersion("3.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.5768.2")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user