Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/57c92fa948bdcefa6b224094ca21f04a8cde6737
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
26 additions and
0 deletions
@ -96,10 +96,36 @@ namespace MediaBrowser.Server.Implementations.Configuration
ValidateItemByNamePath ( newConfig ) ;
ValidateTranscodingTempPath ( newConfig ) ;
ValidatePathSubstitutions ( newConfig ) ;
base . ReplaceConfiguration ( newConfiguration ) ;
}
private void ValidatePathSubstitutions ( ServerConfiguration newConfig )
{
foreach ( var map in newConfig . PathSubstitutions )
{
if ( string . IsNullOrWhiteSpace ( map . From ) | | string . IsNullOrWhiteSpace ( map . To ) )
{
throw new ArgumentException ( "Invalid path substitution" ) ;
}
if ( ! map . From . EndsWith ( ":\\" ) & & ! map . From . EndsWith ( ":/" ) )
{
map . From = map . From . TrimEnd ( '/' ) . TrimEnd ( '\\' ) ;
}
if ( ! map . To . EndsWith ( ":\\" ) & & ! map . To . EndsWith ( ":/" ) )
{
map . To = map . To . TrimEnd ( '/' ) . TrimEnd ( '\\' ) ;
}
if ( string . IsNullOrWhiteSpace ( map . From ) | | string . IsNullOrWhiteSpace ( map . To ) )
{
throw new ArgumentException ( "Invalid path substitution" ) ;
}
}
}
/// <summary>
/// Replaces the item by name path.
/// </summary>