Handle TIFF files with multiple pages

This commit is contained in:
Alex Cabal 2025-02-08 11:53:40 -06:00
parent 5e23837d17
commit 0c2dce3f63
4 changed files with 32 additions and 14 deletions

View file

@ -35,7 +35,7 @@ function rrmdir(string $src): void{
rrmdir($full);
}
else{
unlink($full);
@unlink($full);
}
}
}
@ -99,7 +99,7 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
// We have to do a copy, then unlink because `rename()` can't rename across file systems.
// If the bulk downloads are symlinked to a storage volume, then `rename()` won't work.
copy($tempFilename, $filePath);
unlink($tempFilename);
@unlink($tempFilename);
exec('attr -q -s se-ebook-type -V ' . escapeshellarg($type) . ' ' . escapeshellarg($filePath));
}