Fixed: Determine book author as primary author of most popular edition

This commit is contained in:
ta264
2022-01-03 21:17:52 +00:00
parent 02927dc37d
commit 8c3dd3730a
@@ -324,7 +324,7 @@ namespace NzbDrone.Core.MetadataSource.BookInfo
private int GetAuthorId(WorkResource b)
{
return b.Books.First().Contributors.FirstOrDefault()?.ForeignId ?? 0;
return b.Books.OrderByDescending(x => x.RatingCount * x.AverageRating).First().Contributors.FirstOrDefault()?.ForeignId ?? 0;
}
}
}