Kollision mit mimetype behoben

This commit is contained in:
Andreas Bielawski 2016-08-15 14:25:20 +02:00
parent 32d99e0c47
commit affaf9044c
2 changed files with 2 additions and 2 deletions

View File

@ -23,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 = mime.get_content_type_no_sub(ext)
local receiver = msg.chat.id
if mime_type == 'audio' then

View File

@ -12,7 +12,7 @@ json = require("dkjson")
pcall(json.use_lpeg)
serpent = require("serpent")
redis = (loadfile "./otouto/redis.lua")()
mimetype = (loadfile "./otouto/mimetype.lua")()
mime = (loadfile "./otouto/mimetype.lua")()
OAuth = require "OAuth"
helpers = require "OAuth.helpers"