nyaa-available
v2.0.1
Published
Check nyaa.se to see if an episode if available
Downloads
24
Readme
nyaa-available
Check nyaa.si to see if an episode if available
Install
$ npm install --save nyaa-available
Usage
const nyaa = require('nyaa-available');
nyaa.checkEpisode("Clannad", 23).then((res) => {
console.log(res); // true
});
nyaa.checkEpisode("Clannad", 24).then((res) => {
console.log(res); // false
});
API
.checkEpisode(string title, int episode): Promise(bool)
Checks the if the episode given exists. Returns a promise.
.modifyTitle(string title): string
Modify the title and return a name more suitable to search in nyaa.si
FAQ
Why are there occasional errors when calling the method many times?
Make sure that you query the site at an acceptable pace. For example, 1 request/second.
Help
If there is any problem with the package, please create an issue on github. Thanks!