improve cbz export

This commit is contained in:
2024-12-30 21:58:23 +08:00
parent d27efb180a
commit 1e09d69507
3 changed files with 5 additions and 3 deletions

View File

@@ -208,6 +208,7 @@ abstract class CBZ {
),
);
var cbz = File(FilePath.join(App.cachePath, sanitizeFileName('${comic.title}.cbz')));
if (cbz.existsSync()) cbz.deleteSync();
await _compress(cache.path, cbz.path);
cache.deleteSync(recursive: true);
return cbz;