Fix to test Base64 Image

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

@ -236,6 +236,15 @@ const animeExtraInfo = async(title) =>{
}; };
const imageUrlToBase64 = async(url) => { const imageUrlToBase64 = async(url) => {
let base64image = ""
await imageToBase64(url).then((response) => {base64image = response})
return base64image.toString("base64");
};
/*const imageUrlToBase64 = async(url) => {
let res = await cloudscraper({ let res = await cloudscraper({
url, url,
method: "GET", method: "GET",
@ -243,7 +252,7 @@ const imageUrlToBase64 = async(url) => {
}); });
return Buffer.from(res).toString("base64"); return Buffer.from(res).toString("base64");
}; };*/
const MergeRecursive = (obj1 , obj2) => { const MergeRecursive = (obj1 , obj2) => {
for(var p in obj2) { for(var p in obj2) {

Loading…
Cancel
Save