From 8264d4968b5a981bd1485546ec96a4e874f11d74 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 14 Aug 2016 01:54:33 +0800 Subject: Add support for GNU tar archives. --- source/cbz/mucbz.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/cbz/mucbz.c') diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 17a881cc..8baea04f 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -256,6 +256,12 @@ cbz_recognize(fz_context *ctx, const char *magic) if ((ext && !fz_strcasecmp(ext, ".zip")) || !strcmp(magic, "zip") || !strcmp(magic, "application/zip")) return 100; + if ((ext && !fz_strcasecmp(ext, ".tar")) || !strcmp(magic, "tar") || + !strcmp(magic, "application/x-tar")) + return 100; + if ((ext && !fz_strcasecmp(ext, ".cbt")) || !strcmp(magic, "cbt") || + !strcmp(magic, "application/x-cbt")) + return 100; return 0; } -- cgit v1.2.3