Fix imageToBase64

pull/1/head
Jéluchu 5 years ago
parent 7cea7bccfe
commit 0af66b2496

@ -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) => {

Loading…
Cancel
Save