Random Fixes (#3549)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
ea81a2f432
commit
39726f8c4d
33 changed files with 425 additions and 107 deletions
|
@ -173,7 +173,22 @@ public class CacheService : ICacheService
|
|||
|
||||
await extractLock.WaitAsync();
|
||||
try {
|
||||
if(_directoryService.Exists(extractPath)) return chapter;
|
||||
if (_directoryService.Exists(extractPath))
|
||||
{
|
||||
if (extractPdfToImages)
|
||||
{
|
||||
var pdfImages = _directoryService.GetFiles(extractPath,
|
||||
Tasks.Scanner.Parser.Parser.ImageFileExtensions);
|
||||
if (pdfImages.Any())
|
||||
{
|
||||
return chapter;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return chapter;
|
||||
}
|
||||
}
|
||||
|
||||
var files = chapter?.Files.ToList();
|
||||
ExtractChapterFiles(extractPath, files, extractPdfToImages);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue