diff --git a/src/utils/index.js b/src/utils/index.js index 7209fda..0cfc5ab 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -236,12 +236,13 @@ const animeExtraInfo = async(title) =>{ }; const imageUrlToBase64 = async(url) => { + let res = await cloudscraper({ + url, + method: "GET", + encoding: null + }); - let base64image = "" - - await imageToBase64(url).then((response) => {base64image = response}) - - return base64image.toString("base64"); + return Buffer.from(res).toString("base64"); }; const MergeRecursive = (obj1 , obj2) => {