This service provides actions for accessing nCore torrent provider. It utilizes the file streaming capabilities of the moleculer framework for downloading torrent file.
The following list details which features are implemented
- Sign in to nCore website
- Get movies according to filter criterias
- Get movie details and versions by nCore or IMDB id
- Download a torrent file
npm install moleculer-ncore --save
const { ServiceBroker } = require("moleculer");
const NcoreService = require("moleculer-ncore");
const broker = new ServiceBroker({ logger: console });
// Create a service
broker.createService({
mixins: NcoreService,
settings: {
username: "*******",
password: "*******",
url: "https://ncore.pro"
}
});
Property | Type | Default | Description |
---|---|---|---|
username |
String |
required | The username for nCore login |
password |
String |
required | The password for nCore login |
url |
String |
https://ncore.pro |
The url of the nCore website |
List movies
Property | Type | Default | Description |
---|---|---|---|
genres |
array |
[] |
The genres of the movies |
sortBy |
string |
uploaded |
The attribute to be used for ordering |
sortDirection |
string |
DESC |
The direction of the ordering |
Type: PromiseLike.<(Array.<Object>|Error)>
Get a movie by nCore id.
Property | Type | Default | Description |
---|---|---|---|
id |
string |
required | nCore id of the movie |
Type: PromiseLike.<(object|Error)>
Get a movie by IMDB id.
Property | Type | Default | Description |
---|---|---|---|
imdbId |
string |
required | IMDB id of the movie |
Type: PromiseLike.<(object|Error)>
Get a Node stream that represents the downloadable torrent file of the given movie.
Property | Type | Default | Description |
---|---|---|---|
id |
string |
required | nCore id of the movie |
Type: PromiseLike.<(stream|Error)>
$ npm test
In development with watching
$ npm run ci
Please send pull requests improving the usage and fixing bugs, improving documentation and providing better examples, or providing some testing, because these things are important.
The project is available under the MIT license.
Copyright (c) 2021 Zoltan Kakuk