This project provide a library and a command line interface to use Alldebrid.
-
For library using :
$ npm install node-alldebrid --save
-
For command line tool :
$ npm install -g node-alldebrid
-
Library :
const Alldebrid = require('node-alldebrid'); let alldebrid = new Alldebrid(); alldebrid.connect('login', 'password') .then(() => { return alldebrid.debrid('https://mymovie.mkv'); }) .then(link => console.log(link));
-
Command line tool :
$ export ALLDEBRID_LOGIN=<login> $ export ALLDEBRID_PASSWORD=<password> $ alldebrid <url>
-
Download or stream video :
$ wget $(alldebrid <url>) # Download $ mpv $(alldebrid <url>) # Video