Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/040c36dbf22a4175686bbf0a7824f698a764ab8b
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
19 additions and
18 deletions
@ -618,7 +618,7 @@ namespace MediaBrowser.Api.Playback
// Don't re-encode ass/ssa to ass because ffmpeg ass encoder fails if there's more than one ass rectangle. Affect Anime mostly.
// See https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2013-April/063616.html
bool isAssSubtitle = string . Equals ( state . SubtitleStream . Codec , "ass" , StringComparison . OrdinalIgnoreCase ) | | string . Equals ( state . SubtitleStream . Codec , "ssa" , StringComparison . OrdinalIgnoreCase ) ;
var isAssSubtitle = string . Equals ( state . SubtitleStream . Codec , "ass" , StringComparison . OrdinalIgnoreCase ) | | string . Equals ( state . SubtitleStream . Codec , "ssa" , StringComparison . OrdinalIgnoreCase ) ;
var task = MediaEncoder . ExtractTextSubtitle ( inputPath , type , state . SubtitleStream . Index , isAssSubtitle , path , CancellationToken . None ) ;
@ -110,10 +110,13 @@ namespace MediaBrowser.Controller.Entities
return System . IO . Path . GetDirectoryName ( Path ) ;
}
if ( VideoType = = VideoType . BluRay | | VideoType = = VideoType . Dvd | |
VideoType = = VideoType . HdDvd )
if ( ! IsPlaceHolder )
{
return Path ;
if ( VideoType = = VideoType . BluRay | | VideoType = = VideoType . Dvd | |
VideoType = = VideoType . HdDvd )
{
return Path ;
}
}
return base . ContainingFolderPath ;
@ -259,10 +262,7 @@ namespace MediaBrowser.Controller.Entities
{
if ( ! IsInMixedFolder )
{
if ( VideoType = = VideoType . VideoFile | | VideoType = = VideoType . Iso )
{
return new [ ] { System . IO . Path . GetDirectoryName ( Path ) } ;
}
return new [ ] { ContainingFolderPath } ;
}
return base . GetDeletePaths ( ) ;
@ -34,6 +34,7 @@ namespace MediaBrowser.Controller.MediaEncoding
{
case VideoType . BluRay :
type = InputType . Bluray ;
inputPath = GetPlayableStreamFiles ( inputPath [ 0 ] , playableStreamFileNames ) . ToArray ( ) ;
break ;
case VideoType . Dvd :
type = InputType . Dvd ;
@ -46,6 +47,7 @@ namespace MediaBrowser.Controller.MediaEncoding
{
case IsoType . BluRay :
type = InputType . Bluray ;
inputPath = GetPlayableStreamFiles ( inputPath [ 0 ] , playableStreamFileNames ) . ToArray ( ) ;
break ;
case IsoType . Dvd :
type = InputType . Dvd ;
@ -118,15 +120,16 @@ namespace MediaBrowser.Controller.MediaEncoding
return type ;
}
public static M odel. Entities . M ediaInfo GetMediaInfo ( InternalMediaInfoResult data )
public static M ediaInfo GetMediaInfo ( InternalMediaInfoResult data )
{
var internalStreams = data . streams ? ? new MediaStreamInfo [ ] { } ;
var info = new Model . Entities . MediaInfo ( ) ;
info . MediaStreams = internalStreams . Select ( s = > GetMediaStream ( s , data . format ) )
. Where ( i = > i ! = null )
. ToList ( ) ;
var info = new MediaInfo
{
MediaStreams = internalStreams . Select ( s = > GetMediaStream ( s , data . format ) )
. Where ( i = > i ! = null )
. ToList ( )
} ;
if ( data . format ! = null )
{
@ -137,7 +140,7 @@ namespace MediaBrowser.Controller.MediaEncoding
}
private static readonly CultureInfo UsCulture = new CultureInfo ( "en-US" ) ;
/// <summary>
/// Converts ffprobe stream info to our MediaStream class
/// </summary>
@ -125,13 +125,11 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
switch ( type )
{
case InputType . Bluray :
case InputType . Dvd :
case InputType . File :
inputPath = GetConcatInputArgument ( inputFiles ) ;
break ;
case InputType . Bluray :
inputPath = GetBlurayInputArgument ( inputFiles [ 0 ] ) ;
break ;
case InputType . Url :
inputPath = GetHttpInputArgument ( inputFiles ) ;
break ;