Skip to content

hedinasr/node-alldebrid

Repository files navigation

node-alldebrid

NPM

Build Status Coverage Status

This project provide a library and a command line interface to use Alldebrid.

Installation

  • For library using :

    $ npm install node-alldebrid --save
  • For command line tool :

    $ npm install -g node-alldebrid

Usage

  • 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