From efba1b5af60f7ae1ebda90a49dee6b0b292950f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Thu, 4 Jun 2020 19:51:28 +0200 Subject: [PATCH] Fixes MoreInfo --- src/utils/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index b2a8c09..8a86fde 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -10,7 +10,8 @@ const animeflvInfo = async (id, index) =>{ try{ const res = await cloudscraper(`${BASE_ANIMEFLV}anime/${id}`); - const $ = cheerio.load(res); + const body = await res; + const $ = cheerio.load(body); const scripts = $('script'); const anime_info_ids = []; const anime_eps_data = []; @@ -236,8 +237,7 @@ const animeExtraInfo = async(title) =>{ }; const imageUrlToBase64 = async(url) => { - Buffer.clear - return base64.encode(url, {string:true}); + return await base64.encode(url, {string:true}); }; const search = async() =>{ }