From 5cc1fa86a990418f3b1cf1e6586d8a2b828f5b8c Mon Sep 17 00:00:00 2001 From: simon987 Date: Wed, 15 Jul 2020 20:56:25 -0400 Subject: [PATCH] Read embedded thumbnail simon987/sist2#74 --- README.md | 2 +- src/main.c | 3 ++- src/static/js/dom.js | 3 ++- src/static/search.html | 2 +- src/static/stats.html | 2 +- src/web/static_generated.c | 6 +++--- third-party/libscan | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a5d53f1..e08ad0a 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ ttf,ttc,cff,woff,fnt,otf | Freetype2 | - | yes, `bmp` | Name & style | `text/plain` | *(none)* | yes | no | - | html, xml | *(none)* | yes | no | - | tar, zip, rar, 7z, ar ... | Libarchive | yes\* | - | no | -docx, xlsx, pptx | *(none)* | yes | no | creator, modified_by, title | +docx, xlsx, pptx | *(none)* | yes | if embedded | creator, modified_by, title | mobi, azw, azw3 | libmobi | yes | no | author, title | \* *See [Archive files](#archive-files)* diff --git a/src/main.c b/src/main.c index 01fd557..b0b7231 100644 --- a/src/main.c +++ b/src/main.c @@ -21,7 +21,7 @@ #define EPILOG "Made by simon987 . Released under GPL-3.0" -static const char *const Version = "2.6.0"; +static const char *const Version = "2.6.1"; static const char *const usage[] = { "sist2 scan [OPTION]... PATH", "sist2 index [OPTION]... INDEX", @@ -134,6 +134,7 @@ void initialize_scan_context(scan_args_t *args) { ScanCtx.ooxml_ctx.content_size = args->content_size; ScanCtx.ooxml_ctx.log = _log; ScanCtx.ooxml_ctx.logf = _logf; + ScanCtx.ooxml_ctx.store = _store; // MOBI ScanCtx.mobi_ctx.content_size = args->content_size; diff --git a/src/static/js/dom.js b/src/static/js/dom.js index 0fd46b8..0ddee56 100644 --- a/src/static/js/dom.js +++ b/src/static/js/dom.js @@ -209,7 +209,8 @@ function infoButtonCb(hit) { const displayFields = new Set([ "mime", "size", "mtime", "path", "title", "width", "height", "duration", "audioc", "videoc", - "bitrate", "artist", "album", "album_artist", "genre", "title", "font_name", "tag" + "bitrate", "artist", "album", "album_artist", "genre", "title", "font_name", "tag", "author", + "modified_by" ]); Object.keys(doc) .filter(key => key.startsWith("_keyword.") || key.startsWith("_text.") || displayFields.has(key) || key.startsWith("exif_")) diff --git a/src/static/search.html b/src/static/search.html index b6621b2..280c684 100644 --- a/src/static/search.html +++ b/src/static/search.html @@ -11,7 +11,7 @@