From 7b9c5c0f4fddc5125860b81cd6f5032d898a595a Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Wed, 1 Sep 2021 16:56:09 -0400 Subject: [PATCH] Add episode/podcast search engine bool --- InternalUtilities/InternalUtilities.csproj | 2 +- LibationLauncher/LibationLauncher.csproj | 2 +- LibationSearchEngine/SearchEngine.cs | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/InternalUtilities/InternalUtilities.csproj b/InternalUtilities/InternalUtilities.csproj index 1ba32c43..ed61152a 100644 --- a/InternalUtilities/InternalUtilities.csproj +++ b/InternalUtilities/InternalUtilities.csproj @@ -5,7 +5,7 @@ - + diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index 52c8d1a6..d7717e38 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 5.6.0.8 + 5.6.1.0 diff --git a/LibationSearchEngine/SearchEngine.cs b/LibationSearchEngine/SearchEngine.cs index 83bdd480..22147a46 100644 --- a/LibationSearchEngine/SearchEngine.cs +++ b/LibationSearchEngine/SearchEngine.cs @@ -129,6 +129,11 @@ namespace LibationSearchEngine ["IsLiberated"] = lb => isLiberated(lb.Book), ["Liberated"] = lb => isLiberated(lb.Book), ["LiberatedError"] = lb => liberatedError(lb.Book), + + ["Podcast"] = lb => lb.Book.ContentType == ContentType.Episode, + ["IsPodcast"] = lb => lb.Book.ContentType == ContentType.Episode, + ["Episode"] = lb => lb.Book.ContentType == ContentType.Episode, + ["IsEpisode"] = lb => lb.Book.ContentType == ContentType.Episode, } );