mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 10:16:42 +00:00
handle .tgz #44, ignore files inside archives for stats page
This commit is contained in:
parent
ee0f71f4d3
commit
dd2397ef5c
@ -13,7 +13,7 @@ application/epub+zip, epub
|
|||||||
application/freeloader, frl
|
application/freeloader, frl
|
||||||
application/futuresplash, spl
|
application/futuresplash, spl
|
||||||
application/groupwise, vew
|
application/groupwise, vew
|
||||||
application/gzip, gz
|
application/gzip, gz|tgz
|
||||||
application/hta, hta
|
application/hta, hta
|
||||||
application/i-deas, unv
|
application/i-deas, unv
|
||||||
application/iges, iges|igs
|
application/iges, iges|igs
|
||||||
|
|
@ -22,7 +22,7 @@
|
|||||||
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
#define EPILOG "Made by simon987 <me@simon987.net>. Released under GPL-3.0"
|
||||||
|
|
||||||
|
|
||||||
static const char *const Version = "2.3.0";
|
static const char *const Version = "2.3.1";
|
||||||
static const char *const usage[] = {
|
static const char *const usage[] = {
|
||||||
"sist2 scan [OPTION]... PATH",
|
"sist2 scan [OPTION]... PATH",
|
||||||
"sist2 index [OPTION]... INDEX",
|
"sist2 index [OPTION]... INDEX",
|
||||||
|
@ -885,6 +885,7 @@ g_hash_table_insert(ext_table, "frl", (gpointer)application_freeloader);
|
|||||||
g_hash_table_insert(ext_table, "spl", (gpointer)application_futuresplash);
|
g_hash_table_insert(ext_table, "spl", (gpointer)application_futuresplash);
|
||||||
g_hash_table_insert(ext_table, "vew", (gpointer)application_groupwise);
|
g_hash_table_insert(ext_table, "vew", (gpointer)application_groupwise);
|
||||||
g_hash_table_insert(ext_table, "gz", (gpointer)application_gzip);
|
g_hash_table_insert(ext_table, "gz", (gpointer)application_gzip);
|
||||||
|
g_hash_table_insert(ext_table, "tgz", (gpointer)application_gzip);
|
||||||
g_hash_table_insert(ext_table, "hta", (gpointer)application_hta);
|
g_hash_table_insert(ext_table, "hta", (gpointer)application_hta);
|
||||||
g_hash_table_insert(ext_table, "unv", (gpointer)application_i_deas);
|
g_hash_table_insert(ext_table, "unv", (gpointer)application_i_deas);
|
||||||
g_hash_table_insert(ext_table, "iges", (gpointer)application_iges);
|
g_hash_table_insert(ext_table, "iges", (gpointer)application_iges);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<nav class="navbar navbar-expand-lg">
|
<nav class="navbar navbar-expand-lg">
|
||||||
<a class="navbar-brand" href="/">sist2</a>
|
<a class="navbar-brand" href="/">sist2</a>
|
||||||
<span class="badge badge-pill version">2.3.0</span>
|
<span class="badge badge-pill version">2.3.1</span>
|
||||||
<span class="tagline">Lightning-fast file system indexer and search tool </span>
|
<span class="tagline">Lightning-fast file system indexer and search tool </span>
|
||||||
<a class="btn ml-auto" href="/stats">Stats</a>
|
<a class="btn ml-auto" href="/stats">Stats</a>
|
||||||
<button class="btn" type="button" data-toggle="modal" data-target="#settings" onclick="loadSettings()">Settings</button>
|
<button class="btn" type="button" data-toggle="modal" data-target="#settings" onclick="loadSettings()">Settings</button>
|
||||||
|
@ -24,6 +24,10 @@ typedef struct {
|
|||||||
|
|
||||||
void fill_tables(cJSON *document, UNUSED(const char uuid_str[UUID_STR_LEN])) {
|
void fill_tables(cJSON *document, UNUSED(const char uuid_str[UUID_STR_LEN])) {
|
||||||
|
|
||||||
|
if (cJSON_GetObjectItem(document, "parent") != NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const char *json_path = cJSON_GetObjectItem(document, "path")->valuestring;
|
const char *json_path = cJSON_GetObjectItem(document, "path")->valuestring;
|
||||||
char *path = malloc(strlen(json_path) + 1);
|
char *path = malloc(strlen(json_path) + 1);
|
||||||
strcpy(path, json_path);
|
strcpy(path, json_path);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user