Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/314a12ffb5dcead93228d6d2ca37f615ae2dad7a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
27 additions and
3 deletions
@ -458,13 +458,37 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
if ( audioChannelPositions . Contains ( "/" ) )
{
return Regex . Replace ( audioChannelPositions , @"^\d+\sobjects" , "" ,
var channelStringList = Regex . Replace ( audioChannelPositions ,
@"^\d+\sobjects" ,
"" ,
RegexOptions . Compiled | RegexOptions . IgnoreCase )
. Replace ( "Object Based / " , "" )
. Split ( new string [ ] { " / " } , StringSplitOptions . RemoveEmptyEntries )
. FirstOrDefault ( )
? . Split ( '/' )
. Sum ( s = > decimal . Parse ( s , CultureInfo . InvariantCulture ) ) ;
? . Split ( '/' ) ;
var positions = default ( decimal ) ;
if ( channelStringList = = null )
{
return 0 ;
}
foreach ( var channel in channelStringList )
{
var channelSplit = channel . Split ( new string [ ] { "." } , StringSplitOptions . None ) ;
if ( channelSplit . Count ( ) = = 3 )
{
positions + = decimal . Parse ( string . Format ( "{0}.{1}" , channelSplit [ 1 ] , channelSplit [ 2 ] ) ) ;
}
else
{
positions + = decimal . Parse ( channel ) ;
}
}
return positions ;
}
}
catch ( Exception e )