This commit is contained in:
simon 2019-10-27 14:00:52 -04:00
parent bdbd7ca7ed
commit 7234c22d2f
5 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,7 @@ major_mime = {
pdf = (
"application/pdf",
"application/x-cbz",
"application/epub+zip",
"application/vnd.ms-xpsdocument",
)

View File

@ -10,7 +10,7 @@
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
static const char *const Version = "1.0.8";
static const char *const Version = "1.0.9";
static const char *const usage[] = {
"sist2 scan [OPTION]... PATH",
"sist2 index [OPTION]... INDEX",

View File

@ -16,7 +16,7 @@ enum mime {
application_commonground=655368,
application_dicom=655369,
application_drafting=655370,
application_epub_zip=655371,
application_epub_zip=655371 | 0x40000000,
application_freeloader=655372,
application_futuresplash=655373,
application_groupwise=655374,

File diff suppressed because one or more lines are too long

View File

@ -129,6 +129,7 @@ function createDocCard(hit) {
});
} else if ((hit["_source"].hasOwnProperty("width") && hit["_source"]["width"] > 20 && hit["_source"]["height"] > 20)
|| hit["_source"]["mime"] === "application/pdf"
|| hit["_source"]["mime"] === "application/epub+zip"
|| hit["_source"]["mime"] === "application/x-cbz"
|| hit["_source"].hasOwnProperty("font_name")
) {