From 90d671d68d0a14380983712e3eadced653ac1d8e Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 16 Jan 2022 22:09:21 +0000 Subject: [PATCH] Fixed: Error fetching metadata when redirected to work endpoint --- src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs index ddd651794..c4abffa48 100644 --- a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs @@ -337,7 +337,7 @@ namespace NzbDrone.Core.MetadataSource.BookInfo book = author.Books.Value.Where(b => b.Editions.Value.Any(e => e.ForeignEditionId == id.ToString())).FirstOrDefault(); authors = new List { author.Metadata.Value }; } - else if (type == "book") + else if (type == "work") { var tuple = PollBook(newId);