From 84fb5cfe96263f79e50b68a5a6996e40c514cf74 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 5 Oct 2020 15:58:40 +0200 Subject: Add Electronic Publication (EPUB) support $ file -b --mime-type don-quijoti-epub3.epub application/epub+zip --- src/fr-command-7z.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/fr-command-7z.c') diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c index bd8406b..796e03a 100644 --- a/src/fr-command-7z.c +++ b/src/fr-command-7z.c @@ -578,7 +578,8 @@ fr_command_7z_handle_error (FrCommand *comm, } -const char *sevenz_mime_types[] = { "application/x-7z-compressed", +const char *sevenz_mime_types[] = { "application/epub+zip", + "application/x-7z-compressed", "application/x-arj", "application/vnd.ms-cab-compressed", "application/x-cd-image", @@ -641,7 +642,8 @@ fr_command_7z_get_capabilities (FrCommand *comm, else capabilities |= FR_COMMAND_CAN_READ; - if (is_mime_type (mime_type, "application/x-cbz") + if (is_mime_type (mime_type, "application/epub+zip") + || is_mime_type (mime_type, "application/x-cbz") || is_mime_type (mime_type, "application/x-ms-dos-executable") || is_mime_type (mime_type, "application/zip")) { -- cgit v1.2.1