Use new content type queries

This commit is contained in:
Michael Bucari-Tovo 2022-06-08 10:34:05 -06:00
parent 7d28681b23
commit 6cb98f99c5
3 changed files with 9 additions and 8 deletions

View file

@ -29,7 +29,7 @@ namespace FileLiberator
public IEnumerable<LibraryBook> GetValidLibraryBooks(IEnumerable<LibraryBook> library)
=> library.Where(libraryBook =>
Validate(libraryBook)
&& (libraryBook.Book.ContentType != ContentType.Episode || LibationFileManager.Configuration.Instance.DownloadEpisodes)
&& (!libraryBook.Book.IsEpisodeChild() || Configuration.Instance.DownloadEpisodes)
);
public async Task<StatusHandler> ProcessSingleAsync(LibraryBook libraryBook, bool validate)