Open xaxa-0x3F opened 3 years ago
I has a sumilar issue
info: The url return a wrong status code. Maybe the website is down for the moment.
info: [object Object]
TypeError: Cannot read property 'link' of undefined
at Object.stream (/home/andruxuis/Documents/Flutter/animecloud/functions/node_modules/@justalk/anime-api/src/chia-anime/search.js:28:63)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.download (/home/andruxuis/Documents/Flutter/animecloud/functions/node_modules/@justalk/anime-api/src/chia-anime/search.js:42:25)
at async Promise.all (index 0)
at async Object.download (/home/andruxuis/Documents/Flutter/animecloud/functions/node_modules/@justalk/anime-api/src/index.js:44:13)the code I'm using is:
const animeapi = require("@justalk/anime-api");
this is the code I wrote:
const video = animeapi.download("black clover", 100);
video
.then((video) => console.log(video))
.catch((error) => console.log(error));
Welcome to this project,
I will look at it. The problem is some of those websites change quite often their dns origin, so it's a bit hard to keep up with them.
Code I am calling: