bug fix: DownloadEpisodes logic needs parans

This commit is contained in:
Robert McRackan 2021-09-24 19:59:57 -04:00
parent c9c28c7826
commit c77ec54035

View File

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