Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/0f198dc818300b6d8b8e85858274b0821ec70a20
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
5 additions and
5 deletions
@ -225,8 +225,8 @@ namespace Emby.Drawing
if ( ! _fileSystem . FileExists ( cacheFilePath ) )
{
var newWidth = Convert . ToInt32 ( newSize. Width ) ;
var newHeight = Convert . ToInt32 ( newSize. Height ) ;
var newWidth = Convert . ToInt32 ( Math. Round ( newSize. Width ) ) ;
var newHeight = Convert . ToInt32 ( Math. Round ( newSize. Height ) ) ;
_fileSystem . CreateDirectory ( _fileSystem . GetDirectoryName ( cacheFilePath ) ) ;
var tmpPath = Path . ChangeExtension ( Path . Combine ( _appPaths . TempDirectory , Guid . NewGuid ( ) . ToString ( "N" ) ) , Path . GetExtension ( cacheFilePath ) ) ;
@ -339,13 +339,13 @@ namespace Emby.Drawing
if ( width . HasValue )
{
var heightValue = aspect / width. Value ;
return new ImageSize ( width . Value , Convert. ToInt32 ( heightValue) ) ;
var heightValue = width. Value / aspect ;
return new ImageSize ( width . Value , heightValue) ;
}
var height = options . Height ? ? options . MaxHeight ? ? 200 ;
var widthValue = aspect * height ;
return new ImageSize ( Convert. ToInt32 ( widthValue) , height ) ;
return new ImageSize ( widthValue, height ) ;
}
private double GetEstimatedAspectRatio ( ImageType type )