Add ContentType.Parent

Import Series parent when only individual episodes are in library
This commit is contained in:
Michael Bucari-Tovo 2022-06-07 15:27:18 -06:00
parent 30e6deeeaa
commit c48eacd9af
4 changed files with 83 additions and 21 deletions

View file

@ -29,7 +29,8 @@ 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.ContentType != ContentType.Parent
&& (libraryBook.Book.ContentType != ContentType.Episode || Configuration.Instance.DownloadEpisodes)
);
public async Task<StatusHandler> ProcessSingleAsync(LibraryBook libraryBook, bool validate)