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

pull/1448/head
ta264 3 years ago
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;
}
}
}

Loading…
Cancel
Save