Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/04a96788f9f3ea20b05d3c57d16d222ba7a53101
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
20 additions and
4 deletions
@ -65,10 +65,26 @@ namespace MediaBrowser.MediaEncoding.Attachments
}
var mediaSources = await _mediaSourceManager . GetPlayackMediaSources ( item , null , true , false , cancellationToken ) . ConfigureAwait ( false ) ;
var mediaSource = mediaSources
. First ( i = > string . Equals ( i . Id , mediaSourceId , StringComparison . OrdinalIgnoreCase ) ) ;
var mediaAttachment = mediaSource . MediaAttachments
. First ( i = > i . Index = = attachmentStreamIndex ) ;
MediaSourceInfo mediaSource ;
MediaAttachment mediaAttachment ;
try
{
mediaSource = mediaSources
. First ( i = > string . Equals ( i . Id , mediaSourceId , StringComparison . OrdinalIgnoreCase ) ) ;
}
catch ( Exception ex ) when ( ex is ArgumentNullException | | ex is InvalidOperationException )
{
throw new ResourceNotFoundException ( $"MediaSource {mediaSourceId} not found" ) ;
}
try
{
mediaAttachment = mediaSource . MediaAttachments
. First ( i = > i . Index = = attachmentStreamIndex ) ;
}
catch ( Exception ex ) when ( ex is ArgumentNullException | | ex is InvalidOperationException )
{
throw new ResourceNotFoundException ( $"MediaSource {mediaSourceId} has no attachment with stream index {attachmentStreamIndex}" ) ;
}
var attachmentStream = await GetAttachmentStream ( mediaSource , mediaAttachment , cancellationToken )
. ConfigureAwait ( false ) ;