From 4faa945e3409dbb724809f4922b6eca75e42e59d Mon Sep 17 00:00:00 2001 From: Akamaru Date: Sat, 27 Aug 2016 16:06:21 +0200 Subject: [PATCH] =?UTF-8?q?Nutze=20HTTPS=20f=C3=BCr=20MyAnimeList=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/myanimelist.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otouto/plugins/myanimelist.lua b/otouto/plugins/myanimelist.lua index 5030f82..4b11627 100644 --- a/otouto/plugins/myanimelist.lua +++ b/otouto/plugins/myanimelist.lua @@ -28,7 +28,7 @@ end local user = cred_data.mal_user local password = cred_data.mal_pw -local BASE_URL = 'http://'..user..':'..password..'@myanimelist.net/api' +local BASE_URL = 'https://'..user..':'..password..'@myanimelist.net/api' function mal:delete_tags(str) str = string.gsub( str, '
', '') @@ -50,7 +50,7 @@ function mal:get_mal_info(query, typ) elseif typ == 'manga' then url = BASE_URL..'/manga/search.xml?q='..query end - local res,code = http.request(url) + local res,code = https.request(url) if code ~= 200 then return "HTTP-Fehler" end local result = xml.load(res) return result @@ -59,7 +59,7 @@ end function mal:send_anime_data(result, receiver) local title = xml.find(result, 'title')[1] local id = xml.find(result, 'id')[1] - local mal_url = 'http://myanimelist.net/anime/'..id + local mal_url = 'https://myanimelist.net/anime/'..id if xml.find(result, 'synonyms')[1] then alt_name = '\noder: '..unescape(mal:delete_tags(xml.find(result, 'synonyms')[1])) @@ -121,7 +121,7 @@ end function mal:send_manga_data(result) local title = xml.find(result, 'title')[1] local id = xml.find(result, 'id')[1] - local mal_url = 'http://myanimelist.net/manga/'..id + local mal_url = 'https://myanimelist.net/manga/'..id if xml.find(result, 'type')[1] then typ = ' ('..xml.find(result, 'type')[1]..')'