diff --git a/miku/plugins/myanimelist.lua b/miku/plugins/myanimelist.lua index 99aae68..dd74f43 100644 --- a/miku/plugins/myanimelist.lua +++ b/miku/plugins/myanimelist.lua @@ -29,7 +29,7 @@ end local user = cred_data.mal_username 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, '
', '') @@ -57,7 +57,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 @@ -66,7 +66,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, 'type')[1] then typ = ' ('..xml.find(result, 'type')[1]..')' @@ -135,7 +135,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]..')'