From f35e2fca84af72cf14a563ccb419c20ceaa55012 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 21 May 2015 19:04:12 +0200 Subject: [PATCH] media.lua sends now webp --- libs/mimetype.lua | 2 +- plugins/media.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/mimetype.lua b/libs/mimetype.lua index b3e3e05..5f858b0 100644 --- a/libs/mimetype.lua +++ b/libs/mimetype.lua @@ -25,7 +25,7 @@ local types = { ["image/x-jng"] = "jng", ["image/x-ms-bmp"] = "bmp", ["image/svg+xml"] = "svg", - ["image/webp"] = "webp", + ["application/webp"] = "webp", ["application/java-archive"] = "jar", ["application/mac-binhex40"] = "hqx", ["application/msword"] = "doc", diff --git a/plugins/media.lua b/plugins/media.lua index d89f18f..da4c55a 100644 --- a/plugins/media.lua +++ b/plugins/media.lua @@ -17,6 +17,10 @@ local function run(msg, matches) elseif mime_type == 'text' then print('Sende Document') send_document(receiver, file, rmtmp_cb, cb_extra) + + elseif mime_type == 'application' then + print('Sende Document') + send_document(receiver, file, rmtmp_cb, cb_extra) elseif mime_type == 'image' then print('Sende Foto')