Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/84f76ba3de1cfddacd5bbb1ce8975d6dc1a66868?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
32 additions and
0 deletions
@ -4,6 +4,8 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities ;
using System ;
using System.Collections.Generic ;
using System.Linq ;
using MediaBrowser.Controller.Extensions ;
namespace MediaBrowser.Providers.Manager
{
@ -122,6 +124,11 @@ namespace MediaBrowser.Providers.Manager
if ( replaceData | | targetResult . People = = null | | targetResult . People . Count = = 0 )
{
targetResult . People = sourceResult . People ;
}
else if ( targetResult . People ! = null & & sourceResult . People ! = null )
{
MergePeople ( sourceResult . People , targetResult . People ) ;
}
}
@ -205,6 +212,31 @@ namespace MediaBrowser.Providers.Manager
}
}
private static void MergePeople ( List < PersonInfo > source , List < PersonInfo > target )
{
foreach ( var person in target )
{
var normalizedName = person . Name . RemoveDiacritics ( ) ;
var personInSource = source . FirstOrDefault ( i = > string . Equals ( i . Name . RemoveDiacritics ( ) , normalizedName , StringComparison . OrdinalIgnoreCase ) ) ;
if ( personInSource ! = null )
{
foreach ( var providerId in personInSource . ProviderIds )
{
if ( ! person . ProviderIds . ContainsKey ( providerId . Key ) )
{
person . ProviderIds [ providerId . Key ] = providerId . Value ;
}
}
if ( string . IsNullOrWhiteSpace ( person . ImageUrl ) )
{
person . ImageUrl = personInSource . ImageUrl ;
}
}
}
}
public static void MergeMetadataSettings ( BaseItem source ,
BaseItem target )
{