From 0fbd5e16cf352d8055274b1f01525c671f7e6293 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 14 Aug 2016 22:56:18 +0200 Subject: [PATCH] Media: Fix --- otouto/plugins/media.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/otouto/plugins/media.lua b/otouto/plugins/media.lua index 22575d7..01284d9 100644 --- a/otouto/plugins/media.lua +++ b/otouto/plugins/media.lua @@ -1,7 +1,5 @@ local media = {} -mimetype = (loadfile "./otouto/mimetype.lua")() - media.triggers = { "(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(gif))$", "^(https?://[%w-_%.%?%.:,/%+=&%[%]]+%.(mp4))$", @@ -25,7 +23,7 @@ media.triggers = { function media:action(msg, config, matches) local url = matches[1] local ext = matches[2] - local mime_type = mimetype:get_content_type_no_sub(ext) + local mime_type = mimetype.get_content_type_no_sub(ext) local receiver = msg.chat.id if mime_type == 'audio' then