Bulk Operations for In Progress and Recently Added (#677)

* Don't log a message about bad match if the file is a cover image

* Enable bulk operations for In Progress and Recently Added

* Fixed a bad logic case
This commit is contained in:
Joseph Milazzo 2021-10-15 14:32:17 -07:00 committed by GitHub
parent ef383295f0
commit 98e5cb87ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 149 additions and 35 deletions

View file

@ -73,7 +73,8 @@ namespace API.Services.Tasks.Scanner
info = Parser.Parser.Parse(path, rootPath, type);
}
if (info == null)
// If we couldn't match, log. But don't log if the file parses as a cover image
if (info == null || !(Parser.Parser.IsImage(path) || Parser.Parser.IsCoverImage(path)))
{
_logger.LogWarning("[Scanner] Could not parse series from {Path}", path);
return;