Correctly include cover JPGs in azw3 bulk downloads

This commit is contained in:
Alex Cabal 2023-04-30 02:14:09 -05:00
parent 25ed4b4147
commit b58df6b141

View file

@ -54,7 +54,7 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
if($ebook->KindleCoverUrl !== null){
$ebookThumbnailPath = $webRoot . '/' . $ebook->KindleCoverUrl;
$zip->addFile($ebookFilePath, $folderName . '/' . basename($ebookThumbnailPath));
$zip->addFile($ebookThumbnailPath, $folderName . '/' . basename($ebookThumbnailPath));
}
}