瀏覽代碼

Augment similarity with person matches

The code comment says "genres, tags, studios, _person_, year?", but does no matching on common people between films. This PR augments similarity score treating people similar to tags.
Brad Beattie 2 年之前
父節點
當前提交
9d37c0feec
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 1 - 0
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -2392,6 +2392,7 @@ namespace Emby.Server.Implementations.Data
 
                 // genres, tags, studios, person, year?
                 builder.Append("+ (Select count(1) * 10 from ItemValues where ItemId=Guid and CleanValue in (select CleanValue from ItemValues where ItemId=@SimilarItemId))");
+                builder.Append("+ (Select count(1) * 10 from People where ItemId=Guid and Name in (select Name from People where ItemId=@SimilarItemId))");
 
                 if (item is MusicArtist)
                 {