Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/10fde0a2c12b3992792ead68d27e621f4999a6b8?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
8 additions and
1 deletions
@ -2452,7 +2452,9 @@ namespace Emby.Server.Implementations.Data
if ( query . SearchTerm . Length > 1 )
if ( query . SearchTerm . Length > 1 )
{
{
builder . Append ( "+ ((CleanName like @SearchTermContains or (OriginalTitle not null and OriginalTitle like @SearchTermContains)) * 10)" ) ;
builder . Append ( "+ ((CleanName like @SearchTermContains or (OriginalTitle not null and OriginalTitle like @SearchTermContains)) * 10)" ) ;
builder . Append ( "+ ((Tags not null and Tags like @SearchTermContains) * 5)" ) ;
builder . Append ( "+ (SELECT COUNT(1) * 1 from ItemValues where ItemId=Guid and CleanValue like @SearchTermContains)" ) ;
builder . Append ( "+ (SELECT COUNT(1) * 2 from ItemValues where ItemId=Guid and CleanValue like @SearchTermStartsWith)" ) ;
builder . Append ( "+ (SELECT COUNT(1) * 10 from ItemValues where ItemId=Guid and CleanValue like @SearchTermEquals)" ) ;
}
}
builder . Append ( ") as SearchScore" ) ;
builder . Append ( ") as SearchScore" ) ;
@ -2483,6 +2485,11 @@ namespace Emby.Server.Implementations.Data
{
{
statement . TryBind ( "@SearchTermContains" , "%" + searchTerm + "%" ) ;
statement . TryBind ( "@SearchTermContains" , "%" + searchTerm + "%" ) ;
}
}
if ( commandText . Contains ( "@SearchTermEquals" , StringComparison . OrdinalIgnoreCase ) )
{
statement . TryBind ( "@SearchTermEquals" , searchTerm ) ;
}
}
}
private void BindSimilarParams ( InternalItemsQuery query , IStatement statement )
private void BindSimilarParams ( InternalItemsQuery query , IStatement statement )