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