mirror of
https://github.com/Readarr/Readarr
synced 2026-04-21 04:11:04 +02:00
Fixed: Determine book author as primary author of most popular edition
This commit is contained in:
parent
02927dc37d
commit
8c3dd3730a
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ private static Edition MapEdition(BookResource resource)
|
|||
|
||||
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…
Reference in a new issue