mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04:00
Fixed: Don't accidentally remove book editions when refreshing a book
This commit is contained in:
@@ -87,6 +87,13 @@ namespace NzbDrone.Core.Books
|
||||
newbook.AuthorMetadataId = book.AuthorMetadataId;
|
||||
newbook.AuthorMetadata.Value.Id = book.AuthorMetadataId;
|
||||
|
||||
// make sure to grab editions data for any other existing editions
|
||||
foreach (var edition in book.Editions.Value.Skip(1))
|
||||
{
|
||||
tuple = _bookInfo.GetBookInfo(edition.ForeignEditionId, false);
|
||||
newbook.Editions.Value.AddRange(tuple.Item2.Editions.Value);
|
||||
}
|
||||
|
||||
author.Books = new List<Book> { newbook };
|
||||
return author;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user