mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Fixed: Determine book author as primary author of most popular edition
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user