Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/fe8531f74e1152086673026840e244d66054acd4?style=split&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
18 additions and
6 deletions
@ -132,13 +132,25 @@ namespace Jellyfin.Api.Controllers
var normalizedPlaylistId = playlistId ;
var normalizedPlaylistId = playlistId ;
var playlistPath = _fileSystem . GetFilePaths ( transcodeFolderPath )
var filePaths = _fileSystem . GetFilePaths ( transcodeFolderPath ) ;
. FirstOrDefault ( i = >
// Add . to start of segment container for future use.
string . Equals ( Path . GetExtension ( i ) , ".m3u8" , StringComparison . OrdinalIgnoreCase )
segmentContainer = segmentContainer . Insert ( 0 , "." ) ;
& & i . IndexOf ( normalizedPlaylistId , StringComparison . OrdinalIgnoreCase ) ! = - 1 )
string? playlistPath = null ;
? ? throw new ResourceNotFoundException ( $"Provided path ({transcodeFolderPath}) is not valid." ) ;
foreach ( var path in filePaths )
{
var pathExtension = Path . GetExtension ( path ) ;
if ( ( string . Equals ( pathExtension , segmentContainer , StringComparison . OrdinalIgnoreCase )
| | string . Equals ( pathExtension , ".m3u8" , StringComparison . OrdinalIgnoreCase ) )
& & path . IndexOf ( normalizedPlaylistId , StringComparison . OrdinalIgnoreCase ) ! = - 1 )
{
playlistPath = path ;
break ;
}
}
return GetFileResult ( file , playlistPath ) ;
return playlistPath = = null
? NotFound ( "Hls segment not found." )
: GetFileResult ( file , playlistPath ) ;
}
}
private ActionResult GetFileResult ( string path , string playlistPath )
private ActionResult GetFileResult ( string path , string playlistPath )