summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fr-command-7z.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index def5dc6..e3230a7 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -362,7 +362,11 @@ fr_command_7z_add (FrCommand *comm,
break;
case FR_COMPRESSION_MAXIMUM:
fr_process_add_arg (comm->process, "-mx=9");
- fr_process_add_arg (comm->process, "-m0=lzma2");;
+ if (! is_mime_type (comm->mime_type, "application/zip")
+ && ! is_mime_type (comm->mime_type, "application/x-cbz"))
+ {
+ fr_process_add_arg (comm->process, "-m0=lzma2");;
+ }
break;
}