From add31024dad4ddee112a797e903017c5c7dea6e8 Mon Sep 17 00:00:00 2001 From: MBucari Date: Mon, 27 Mar 2023 17:53:25 -0600 Subject: [PATCH] Improve book availability detection (#551) --- Source/DtoImporterService/LibraryBookImporter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DtoImporterService/LibraryBookImporter.cs b/Source/DtoImporterService/LibraryBookImporter.cs index 58583be2..cc3b09e7 100644 --- a/Source/DtoImporterService/LibraryBookImporter.cs +++ b/Source/DtoImporterService/LibraryBookImporter.cs @@ -109,7 +109,7 @@ namespace DtoImporterService => isPlusTitleUnavailable(item1) && !isPlusTitleUnavailable(item2) ? item2 : item1; private static bool isPlusTitleUnavailable(ImportItem item) - => item.DtoItem.IsAyce is true - && item.DtoItem.Plans?.Any(p => p.IsAyce) is not true; + => item.DtoItem.ContentType is null + || (item.DtoItem.IsAyce is true && item.DtoItem.Plans?.Any(p => p.IsAyce) is not true); } }