From d089601dc5681af62f6e2b679c1f8823e95e5a70 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 20 Nov 2019 12:30:22 -0500 Subject: [PATCH] Add sfv & m3u --- mime.csv | 2 +- src/parsing/mime_generated.c | 2 ++ web/js/search.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mime.csv b/mime.csv index 22b76d8..d770a27 100644 --- a/mime.csv +++ b/mime.csv @@ -252,7 +252,7 @@ text/html, acgi|htm|html|htmls|htx|shtml text/javascript, js text/mcf, mcf text/pascal, pas -text/plain, com|cmd|conf|def|g|idc|list|lst|mar|sdml|text|txt|md|groovy|license|properties|desktop|ini|rst|cmake|ipynb|readme|less|lo|go|yml|d|cs|hpp|srt|nfo +text/plain, com|cmd|conf|def|g|idc|list|lst|mar|sdml|text|txt|md|groovy|license|properties|desktop|ini|rst|cmake|ipynb|readme|less|lo|go|yml|d|cs|hpp|srt|nfo|sfv|m3u text/richtext, rt|rtf|rtx text/rtf, text/scriplet, wsc diff --git a/src/parsing/mime_generated.c b/src/parsing/mime_generated.c index a11c4c1..0c157e7 100644 --- a/src/parsing/mime_generated.c +++ b/src/parsing/mime_generated.c @@ -1183,6 +1183,8 @@ g_hash_table_insert(ext_table, "cs", (gpointer)text_plain); g_hash_table_insert(ext_table, "hpp", (gpointer)text_plain); g_hash_table_insert(ext_table, "srt", (gpointer)text_plain); g_hash_table_insert(ext_table, "nfo", (gpointer)text_plain); +g_hash_table_insert(ext_table, "sfv", (gpointer)text_plain); +g_hash_table_insert(ext_table, "m3u", (gpointer)text_plain); g_hash_table_insert(ext_table, "rt", (gpointer)text_richtext); g_hash_table_insert(ext_table, "rtf", (gpointer)text_richtext); g_hash_table_insert(ext_table, "rtx", (gpointer)text_richtext); diff --git a/web/js/search.js b/web/js/search.js index 21cbfe8..ab086ae 100644 --- a/web/js/search.js +++ b/web/js/search.js @@ -357,6 +357,7 @@ function search() { post_tags: [""], fields: { content: {}, + // "content.nGram": {}, name: {}, "name.nGram": {}, font_name: {},