diff --git a/otouto/plugins/youtube.lua b/otouto/plugins/youtube.lua index 87fa590..89ff692 100644 --- a/otouto/plugins/youtube.lua +++ b/otouto/plugins/youtube.lua @@ -39,7 +39,7 @@ function get_yt_data (yt_code) return data end -local function convertISO8601Time(duration) +function convertISO8601Time(duration) local a = {} for part in string.gmatch(duration, "%d+") do diff --git a/otouto/utilities.lua b/otouto/utilities.lua index 4d0b743..eacaa30 100644 --- a/otouto/utilities.lua +++ b/otouto/utilities.lua @@ -14,6 +14,8 @@ local bindings = require('otouto.bindings') local redis = (loadfile "./otouto/redis.lua")() local mimetype = (loadfile "./otouto/mimetype.lua")() +HTTP.timeout = 10 + -- For the sake of ease to new contributors and familiarity to old contributors, -- we'll provide a couple of aliases to real bindings here. function utilities:send_message(chat_id, text, disable_web_page_preview, reply_to_message_id, use_markdown, reply_markup)